IE11 with forced IE8 compatibility gets slower with each table.add.row
IE11 with forced IE8 compatibility gets slower with each table.add.row
Hello,
my table shows metadata and links to documents. For this there is a search criteria section and with a click on the search button I clear the table and add all found documents to it. Without any restrictions that’s about 900 documents and it takes 5 seconds to add them all. The problem is with ever click on search it takes longer an longer. To make sure I don't have any mistakes in my code I reduced the method called by the search button to a Minimum (also removed the redraw call).
My Table has 9 columns...
function display_selected_documents2() {
var dateStart = new Date();
dataTable.clear();
for(var i = 0; i < 1000; i++)
{
dataTable.row.add( [ "",
"", "", "", "", "", "", "", ""
] );
}
var dateEnd = new Date();
var endMili = dateEnd.getTime();
var startMili = dateStart.getTime();
$("#remarks").append("Total: " + (endMili - startMili) + "<br />");
}
The Output with 5 times perssing my search button
Total: 4667
Total: 12241
Total: 17860
Total: 23034
Total: 28404
Btw the whole application is running fine (including all striped out functions in under 500ms for 900 documents) in Firefox and Chrome.
Is there something I can do? I tried to destroy the table and recreate it but strangely enough that does not help. Time used just adds up.
Best regards,
Isa
This question has an accepted answers - jump to answer
Answers
I don't really see how that above can be improved in the way the API is being used.
The only thing off the top of my head otherwise would be to ensure you have
deferRender
enabled.Allan
Hi Allan and thanks a lot!
The deferRender did the trick.
It is now down to 3.5 seconds (in IE11/Comp. Mode IE8) and stable.
Best regards,
Isa