I'm looking for a jQuery autoellipsis plugin. (autoellipsis plugins will add ...
at the end of a multiline text.)
I know these plugins: autoellipsis and dotdotdot. but both working slowly in my jQuery Mobile project.
What is the fastest jQuery autoellipsis plugin?
EDIT: I have to call autoellipsis plugin on window resize event.
This JsPerf (http://jsperf.com/truncate-vs-dotdotdot/4) compares the following truncating/ellipsis plugins:
Those plugins are linked from the jsPerf. According to the results, the truncate.js out performs the rest.
Trunk8 is a great bundle for this.
what about AutoEllipsis.jquery ?
https://github.com/SmartMedia/AutoEllipsis/blob/master/autoellipsis.min.jquery.js 1.292 kb
and here's a live example for using it http://jsfiddle.net/abdullahdiaa/s6WB5/
This is one that I rolled a while back, it supports multiple lines etc, I did have some "big" ideas for it but so far this has been useful enough as it is:
https://github.com/rmorse/AutoEllipsis
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With