Browser freezes on execution of tablesorter
Tablesorter version: 2.31.3 Jquery version: 3.5.1
Some mobile devices don't seam to work well with tablesorter.
After the page loads and tablesorter JS executes the page freezes and the browser (mostly Chrome) does not respond. I found out that <script src="jquery.tablesorter.js"></script> is the source of the problem.
This behavior is very rare, freezes mostly on Chrome.
Device: OnePlus 7T Pro 5G Android 10 Chrome 84.0.4147.125 (freezes) Firefox 68.11.0 (works perfectly)
Users reported similar performance issues on following devices:
- Xiaomi 4X
- Honor 8 lite
Hi @0665422!
First off, tablesorter isn't compatible with newer versions of jQuery. A lot of functions have been removed, but it does appear to work with jQuery v3.3.1 - I have no idea why didn't they bump the major version of jQuery.
Secondly, how many rows are there? This version of tablesorter isn't optimized to work with a lot of rows. The exact number would depend on the device and memory; but there is definitely a performance issue when you have more than 1000 rows.
Tried with jQuery v3.3.1 the problem is not sloved. There are around 300 rows and the device that I am using for testing has 12GB RAM.
Everything works fine in Firefox, but some users Chrome mobile freezing for a long time.
Maybe there are some ideas how to fix it.