Skip to content

Instantly share code, notes, and snippets.

@skierpage
Last active December 14, 2015 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skierpage/5053689 to your computer and use it in GitHub Desktop.
Save skierpage/5053689 to your computer and use it in GitHub Desktop.
Force every remaining ResourceLoader module to load. Your window will look weird but you may spot a JavaScript error.
mw.loader.getModuleNames().filter(
function (module) {
var state;
if ( mw.loader.getState( module) === 'registered' ) {
try {
mw.loader.load( module );
} catch (exception) {
console.log ( "Module", module, 'had exception', exception);
}
}
state = mw.loader.getState( module );
if ( state !== 'ready' ) {
console.log( module + ' still in funky state ' + state );
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment