New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script too slow warning messages #80
Comments
I (think) the problem could be because you are sorting it by moving one tr at a time, which means the browser has to draw this tr each time is moved, and maybe maybe, could be that the same TR moves up and down one too many times unnecessarily, this maybe can be avoided if the data is sorted using arrays and then manipulate the dom with the result. (it may help speed up the sorting) Also this may help ... http://stackoverflow.com/questions/1340589/javascript-are-loops-really-faster-in-reverse#13136778 |
oh I see, I was just suggesting it, do you think it could be that tables are pretty slow ? or have any idea as to what it could be ? |
Drawing that many elements may just be too slow. It's probably why most table plugins paginate. |
You could time how long it takes to reach right before the |
when you append, it's a lot faster to use Could this be a possible approach ? |
We aren't appending one by one. We append the entire HTML |
#97 aims to provide performance improvements. |
Hi Guys,
I got a table of ~2000 records, when I try to sort, there is a small delay (1 or 2seconds) on chrome,
However on Firefox, this gives a native pop up saying the script is too slow, and wants to continue, stop it...
I am using a table of 10 columns and 1879 table rows....(if you are going to test this, maybe try a few thousand records to make it work that much harder.
Is there anything I can do to optimise this?
if you have any questions do let me know I will try and answer...
The text was updated successfully, but these errors were encountered: