tablesorter icon indicating copy to clipboard operation
tablesorter copied to clipboard

Browser freezes on execution of tablesorter

Open SlavLazurenko opened this issue 5 years ago • 3 comments

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

SlavLazurenko avatar Aug 17 '20 19:08 SlavLazurenko

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.

Mottie avatar Aug 18 '20 01:08 Mottie

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.

SlavLazurenko avatar Aug 18 '20 03:08 SlavLazurenko

Everything works fine in Firefox, but some users Chrome mobile freezing for a long time.

Maybe there are some ideas how to fix it.

karabest avatar Aug 26 '20 21:08 karabest