The SO question (load-and-execution-sequence-of-a-web-page)gives details into the order of execution of html page. It states - that the script tag is executed sequentially with single thread.
I have the following code on my page:
if(booleanTest)eval('parent.'+callback+'();');
parent.hideWin();
return false;
Assuming that the callback method is having a simple while loop that ran for a large number of times (eg : 30K times), I noticed that the hideWin was getting executed even before the callback even completed.(Tested on IE7)
The point is - if the execution is sequential then why is the above behavior in place - is it something specific to browser?.