Right now we have roughly this:
```
--
load.php?module=startup:
function isCompatible() {
..
}
function startUp() {
..mw.loader.register( ... );
}
if ( isCompatible() ) {
document.write( load.php?module=jquery|mediawiki );
}
--
load.php?module=jquery|mediawiki
* jquery.js
* mediawiki.js
- contains:
if ( jQuery.isFunction( window.startUp ) ) {
window.startUp();
}
mw.loader.state({"jquery":"ready","mediawiki":"ready"});
```
Since the request for jquery/mediawiki is blocking, we can just put the contents of startUp() after the load without needing the function.
This doesn't work right away though, due to the mw.loader.state() call. Because if that is called before the registry is created it will create null-modules with those names, causing an exception when the real registry is inserted.