Follows-up
75c08916b02ac8706.
Makes it easier to debug when a module is skipped as right now
they are indistinguishable from regularly loaded modules (other
then checking the network for load.php requests, though those
may not show up either if mw.loader.store is used).
Change-Id: Ic7d2efbf74e0fbf1334f02ecad797e63d0ae2857
* 'skip': 'return !!window.Example', (or) null
*
* // Added during implementation
+ * 'skipped': true,
* 'script': ...,
* 'style': ...,
* 'messages': { 'key': 'value' },
skip = new Function( registry[module].skip );
registry[module].skip = null;
if ( skip() ) {
+ registry[module].skipped = true;
registry[module].dependencies = [];
registry[module].state = 'ready';
handlePending( module );