Thread:Pecoes/@comment-4674838-20121012013714/@comment-3508190-20121012205745

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.

By the time  fires all scripts (that aren't loaded by other scripts) will have downloaded.

mediaWiki does not seem to fire a ready event of any sort. You could try something funky like:

but I seriously doubt this will fire before. But feel free to try it...