dotdotdot-js icon indicating copy to clipboard operation
dotdotdot-js copied to clipboard

content of string causes dotdotdot to be slow

Open slapshot94 opened this issue 3 years ago • 0 comments

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>'); } } });

slapshot94 avatar Jul 26 '22 16:07 slapshot94