Once again, the client-side code highlighter doesn’t work properly. This question stops my browser from responding completely, until after a few seconds I am asked whether I want to continue the script or stop its execution. I can press “continue” as often as I like, the script never finishes and the browser never responds.
I’m assuming that the script is caught in an infinite loop somewhere since, although the source code in the question is quite long, and it’s in VB (which the formatter still doesn’t support), it should never take that long (on all other codes, highlighting is instantaneous).
The browser is Firefox 3.5.4 (OS X 10.5.8).
(Notice that I am only assuming that the error lies in the formatter rather than somewhere else.)
EDIT Uhm … can’t repro any more, although there’s still a very noticeable delay just at the end of loading the page. According to Firebug, this is due to http://sstatic.net/so/Img/search.png, which is waiting 3.9 seconds (!!!) for a response (but then loads instantaneously). I’ve therefore taken the liberty to change the title of this bug report.
And just to be clear, this problem only appears on the question linked above, nowhere else.
EDIT 2 Apparently the problem isn’t sstatic.com after all, but a script. I don’t know exactly how to repro but now I’ve once again got the timeout dialog (at least most of the time) which tells me that, in fact, the script
http://sstatic.net/so/js/master.js?v=5005%3A1 isn’t responding. Well, that’s probably not all that helpful.
Anyway, I’ve attached links to four images (quite large, so not inline) of the firebug network diagnostics:
- After first loading, no script timeout, just noticeable delay
- Reload of page, this time during script’s timeout
- … and after the script has finally finished loading
- After going forward and backwards again in the browser history – notice that no content gets loaded but scripts get executed (hence Google analytics and pixe.… is loaded).
Notice that clearly at some point the whole network traffic is put on hold to wait for some script, and also notice the red line which indicates that loading has completed. To repeat: this only happens on that one question, and it coincides with the time it takes for the code to be highlighted: during the execution of the script, the code appears without syntax highlighting. If I halt execution of the script, the code remains unhighlighted.