I know Javascript executes code in sequential order. However I am always trying to identify whether any of the code run instantly, "line after line", after each function is compiled executed, or do all the immediate functions calls in that script wait for the entire script to finish parsing before anything is actually run.
I'd like a better understanding of the way javascript parses and execute code. Mainly for external scripts, which seem a bit hard to observe in a console log.
One applicable use, is to try and intercept the 'interactive' document.readyState as early as possible within an external script, due the fact that "interactive" state can fire extremely early at times. As per http://bugs.jquery.com/ticket/12282#comment:15