No initial sort?

No initial sort?

doctorjwdoctorjw Posts: 12Questions: 0Answers: 0
edited March 2012 in General
I'm looking at IE8 performance issues (ugh ... I know!). We're talking about ~3500 rows (6 columns), loaded via ajax, using datatables 1.9. I get the nasty dialog about a script taking too long. I've narrowed this down to the following observation:

when bSort = true, I get the nasty panel.
when bSort = false, I never get the nasty panel.

I've tried setting "aaSorting" : [] to no avail; I was hoping this would completely skip the initial sort (per the docs), but something is still occurring that is making IE8 very unhappy.

I know we can't start with bSort = false and then change it later .... but wouldn't setting "aaSorting" to an empty array accomplish the same thing?

Any suggestions? I know server-side processing is an option, but ... eh ... maybe it'll have to end up being that, but I'd like to explore other options first.

Thanks,

john

Replies

  • doctorjwdoctorjw Posts: 12Questions: 0Answers: 0
    I think this falls into the category of "never mind". We were using another widget on the page ... daterangepicker, from filamentgroup (http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/).

    Anyway, it looks like the "compressed" version of the js for that throws all kinds of exceptions in IE that are hidden from the end user. FireFox & Chrome cope with it quite well, and don't suffer any performance issues, but IE8 just becomes a dog. The IE8 profiler, after running through the page a few times, highlighted that component. Switching to the non-compressed version of that js and I now have page load times on the order of 1-2 seconds in IE.
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Interesting...

    On a different note, if you are Ajax loading data, enable deferred rendering for a bit of a speed boost.

    Allan
  • doctorjwdoctorjw Posts: 12Questions: 0Answers: 0
    +1 on the deferred rendering; I'm pushing to get all of our tables using it because it makes such a tremendous difference.
This discussion has been closed.