Making DiveIntoPython3 work in IE8 (fixing a Javascript performance issue)

Posted by srid on Stack Overflow See other posts from Stack Overflow or by srid
Published on 2009-09-23T20:56:10Z Indexed on 2010/05/13 20:04 UTC
Read the original article Hit count: 306

I am trying to fix the performance problem with Dive Into Python 3 on IE8. Visit this page in IE8 and, after a few moments, you will see the following popup:

alt text

I traced down the culprit down to this line in j/dip3.js

... find("tr:nth-child(" + (i+1) + ") td:nth-child(2)");

If I disable it (and return from the function immediately), the "Stop executing this script?" dialog does not appear as the page now loads fairly fast.

I am no Javascript/jquery expert, so I ask you fellow developers as to why this query is making IE slow. Is there a fix for it?

Edit: you can download the entire webpage (980K) for local viewing/editing.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer