IE 11 Slow Rendering
IE 11 Slow Rendering
Hello,
I'm currently struggling with an issue in IE11 where Datatables can take up to 30 seconds to load and freezes the whole browser while doing so.
Here is my test case: live.datatables.net/sapakati/6. I've substituted some parts as I can't link our internal site directly, mainly just the AJAX response. However the same issue appears on the test case, when opened with IE11 it can take a while to render the table. As I'm using the scroller plugin, as soon as I scroll past the bounds, it loads the next part of the table, and again the browser will freeze and the table rendering will take a large amount of time.
We use Serverside rendering and I have verified that we are returning a response in under 100ms, with the correct number of results being requested by DataTables.
I have tried disabling the various extensions (scroller, select, responsive) and still run into the same problem. I have a feeling its down to the fact we want to show so many columns and rows at once.
Any tips or suggestions on how I can optimise this would be greatly appreciated.
Regards,
Mark
Answers
How many records is your server-side processing responding with? You might be right about the columns, it I've seen tables with many more than that and it shouldn't cause an issue.
Allan
The serverside processing is responding with 333 records. My script receives the following parameters:
And responds with the requested 333 records with an offset of 102 as per the length and start parameters.
For anyone running into the same problem as me, it seems the main slowdown was being caused by the responsive extension. After removing it completely I've seen a dramatic speed increase in IE.
Thanks! I will try this for IE as well. Currently I discourage the use of IE because it is so slow.
Turning off responsive helped to make IE11 a little faster. But it is still very slow compared with Chrome, Edge or Firefox.
If you find anything else to tweak I'd love to hear it, I have tried multiple things but it seems to be the only thing thats provided me with a noticeable difference.
It was sometimes taking 30+ seconds to render for me on IE11. Now it takes about 4-5 seconds, which while still much slower than Chrome/Firefox/etc might be passable for my usecase.