Javascript Execution Order In Ie6
Solution 1:
i once had a problem very similar to the one you describe.
It happened only with a specific version of IE6. The JS was being gzipped by the web server and IE 6 executed my script before the JS, after it's been downloaded but before it's been unzipped... very strange....
it solved when i disabled gzip in my apache for IE6 requests. (don't know if you can do that) The alternative is to set a timer to check if MyObj is defined....
Solution 2:
The most likely explanation is that the first script is sometimes failing to load, due to something like the connection being dropped by the server, the server returning a 503 Service Unavailable error, or some similar reason.
Try running an HTTP debugger like Fiddler; then, when the error occurs, you can examine the HTTP request/response cycle to see what the problem was.
Post a Comment for "Javascript Execution Order In Ie6"