Internet Explorer very slow with around 20000 rows
Internet Explorer very slow with around 20000 rows
JohnDoe007
Posts: 5Questions: 1Answers: 0
Hi!
I'm trying to use DataTables to handle a table of 20 000 rows on Internet Explorer but I have very bad time of response.
It takes more than 60 seconds to load the page (against 2.4 on Firefox).
I noticed the jQuery function append is reponsible of this problem. But if I switched it to another one (like html), I get a correct time of response but the table doesn't work anymore.
How can I handle it?
Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you running with serverSide:true? Can we see some of your code?
I'm not using serverSide because I load all the data at first.
I don't know what you want to see because my code looks like the examples on the documentation.
The problem is, I guess, DataTables doesn't use append function correctly. As it is said here, it's really faster to give a long string as parameter than a huge DOM Element.
Which example in particular?
Here is the code.
HTML :
Javascript :
You'd be far better Ajax loading that data and enable the
deferRender
option. See the "speed" FAQ.Reading 20'000 rows from the DOM is always going to be slow in IE. There really is no way around that.
Allan
I didn't know this option.
Thanks a lot. Now, I can load all the in less than 3 seconds with IE.
Yup. Always worth reading the FAQs ;-).
Good to hear you have it working now.
Allan