dotdotdot-js
dotdotdot-js copied to clipboard
content of string causes dotdotdot to be slow
I have attached a string that is being passed to dotdotdot and for some reason there is something that is causing it to be very slow. Can you please help identify the issue in the text string.txt
this is our function
$("#" + id).dotdotdot({ truncate: "word", height: 60, watch: false, callback: function (isTruncated, orgContent) { if (isTruncated) { $("#" + id).append('<a href="#" class="show-more" data-challengeID="' + challengeId + '">[ <i class="fa-solid fa-plus"></i> ]</a>'); } } });