'Stop running script' message in browser

'Stop running script' message in browser

sonicbugsonicbug Posts: 26Questions: 0Answers: 0
edited May 2013 in General
Hi,

I am getting the 'Stop running script' message in I.E. 8 web browser. My dataset is small, between 1200 and 1500 rows of data. I am reading a csv file then parsing it into an array which dataTables is consuming. I have disabled any sorting on the table and still encountering this message. At this point, I am thinking my only option is to convert the csv over to a json file. Any suggestions here are greatly appreciated.

Thanks in advance.
Michael

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    > At this point, I am thinking my only option is to convert the csv over to a json file.

    I would suggest that - yes! I don't know what is causing IE to be so slow (a link to a test page would be useful), but it will be faster for sure if you take out the CSV parsing. Also remember to use deferred rendering in IE ( bDeferRender ).

    Allan
  • sonicbugsonicbug Posts: 26Questions: 0Answers: 0
    Thanks Allan, the json file loads much quicker! I guess the csv parsing was slowing things down drastically. One other thing, would you recommend sorting the data before it is passed to the dt or have dt sort it? Thanks again,
    Michael
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    I'd just have DT sort it. You could pre-sort it on the server, it would be slightly faster, but really not much since DataTables will do a sort anyway.

    Allan
  • sonicbugsonicbug Posts: 26Questions: 0Answers: 0
    edited June 2013
    Hi,

    Thanks Allan for your suggestions. I was wondering one other thing, I currently have 3 tables each of which is filtered on a different value from a column. As a result, I am having to load my json file three times. I am wondering if I can just use $.ajax and pass the result to aaData so that I can just load the json file once opposed to three. I would imagine that this would further optimize the rendering of loading the data into the table. Once again, any suggestions are greatly appreciated.

    Thanks in advance,
    Michael
This discussion has been closed.