At the core, this is a javascript question but I\'m interfacing the event with jQuery.
Here\'s an example case:
Yes and yes.
The execution of elements is synchronous except when using the HTML5 "async" attribute. The synchronous execution of JavaScript is required (unless otherwise requested not to be) because the JavaScript can modify the document stream through
document.write
, etc. (However, the actual fetching of resources may be in parallel.)
Happy coding.