Last active
December 14, 2015 07:49
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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