How can I improve performance in IE11?

How can I improve performance in IE11?

haz33haz33 Posts: 4Questions: 1Answers: 0

I have a very rare situation for which I use a DataTable. Specifically, I have exactly 350 rows and 65 fields. I do not want to use paging, and I create my entire 350x65 table with raw HTML inside my .PHP file. (Each field has a name -- e.g. tdThisField# -- where the # represents the row number.) Furthermore, my data is stored in an XML file. My Javascript parses the information from the XML file and populates all the cells one-by-one in the pre-created 350x65 table.

Even with the large size of the table, it takes Firefox and Chrome only about 4 or 5 seconds to display the table -- completely acceptable. But with IE11, it takes anywhere from 17 to 27 seconds to display it on the first load. I've read that IE is not terribly cooperative with DataTables, but is there anything I can do? The difference in load-time when using IE seems drastically worse.

Thanks!

Answers

  • allanallan Posts: 64,106Questions: 1Answers: 10,574 Site admin

    Is it DataTables that is taking the time or the parsing of the XML file? We'd really need a link so it can be profiled.

    The difference in load-time when using IE seems drastically worse.

    Yup. That's why everyone (including Microsoft) wan't users to abandon IE.

    Allan

  • haz33haz33 Posts: 4Questions: 1Answers: 0

    I'll put a temporary link out there for you.

    http://www.haslametrics.com/ratings_temp.php

  • haz33haz33 Posts: 4Questions: 1Answers: 0

    Link is now permanent at http://haslametrics.com/ratings.php in case you'd like to test there. The old temporary link is no longer active.

  • allanallan Posts: 64,106Questions: 1Answers: 10,574 Site admin

    Thanks for the link. It shows that the page is really large. ratings.xml is being loaded twice when the page loads and it is 2.1MB (i.e. 4.2MB is being downloaded). Since it is a custom XML format you are then parsing that, which of course takes time, particularly in IE.

    The main page is 1MB is size and includes a massive HTML table which of course takes a long time to parse - again particularly in IE since it is well known to be slow. The HTML contains a lot of apparently redundant information such as ids on each cell.

    I would encourage you to slim the page size down as much as possible. The more data there is, the longer it takes to download and also the longer it takes the browser to parse and display.

    Allan

  • haz33haz33 Posts: 4Questions: 1Answers: 0

    Thank you for looking at it, Allan. I corrected the dual-loading of the .XML file, so that should help a bit.

This discussion has been closed.