Optimizing datatables on IE

Optimizing datatables on IE

nsinhansinha Posts: 5Questions: 0Answers: 0
edited January 2014 in General
I have a fairly large table rendered using datatables.net 1.9.4 and jQuery. The page is pulling the data asynchronously, and then setting aaData and aoColumns in the datatable initialization. While it displays almost instantly in Chrome, in IE9, it takes 6 minutes to display.

IE's profiler says that 96.7% of time is spent in the offsetWidth function. Where is offsetWidth and when is it called? I can't find a function by that name.

Thank you.

-Nick

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Google finds a lot of comment on offsetWidth. It is not specific to DataTables.
  • nsinhansinha Posts: 5Questions: 0Answers: 0
    That's true, but it's something related to DataTables, since this profiling is the .dataTable() method.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    It isn't a function - its a DOM property. DataTables uses it to get the width of columns.

    Try using 1.10 ( http://datatables.net/download - the "nightly") which has a number of optimisations in this kind of area.

    Allan
This discussion has been closed.