If I open this page in Chrome 6.0.472.62 or .63 for OSX, the Javascript interpreter hangs. If I open the developer console to debug the problem and then open the page, the page runs fine. Running with the developer console results in no logging statements, so I'm fairly sure that it's not a problem with console.log
not being defined. I've also tried saving the source and loading the page from a local server. I get no crashes in this situation, either. I've reported the debugging problem to Chrome, but in the meantime, how can I figure out why the page is crashing?
views:
94answers:
1
+1
A:
Crazy theory/speculation... I notice you have a whole slew o' script tags in there. Could it be a race condition that is something like this: http://stackoverflow.com/questions/1942199/webkit-threading-javascript-file-loadsand-execution-order
And running with the debugger might be delaying things in some way that they load in the right order?
Joe Arasin
2010-09-24 23:38:40
+1 - We occasionally have this problem with chrome because we dynamically load scripts for our page. sometimes some scripts load and execute before others, we we have to make sure we check to make sure dependencies are loaded before executing certain parts of code.
Jason
2010-09-24 23:48:25