Thread:Pecoes/@comment-4674838-20121012013714/@comment-4674838-20121012211827

Pecoes wrote: The browser stops everything when it encounters a script tag and downloads the script first. In your example the second script tag will not be executed until the first one has downloaded. That means the second script tag can rely on jQuery being loaded. In other words: script tags are synchronous and their contents execute in document order. Really? But MediaWiki's  is asynchronous, and it also uses a script tag underneath:

So what you're saying then is:
 * 1) Dynamically inserted script tags create an asynchronous request
 * 2) But static script tags that were part of the document to begin with behave differently, and instead, they are synchronous and parsed in order as the document's HTML is parsed.