Earlier evaluation of compactlinks
* Prospectively load ext.uls.init * Prospectively check if readyState is interactive Bug: T136463 Change-Id: Ib36ef6a2b9955189acfbe06bd6b498a66014cf06
This commit is contained in:
@@ -508,9 +508,16 @@
|
||||
} );
|
||||
}
|
||||
|
||||
$( document ).ready( function () {
|
||||
function init() {
|
||||
initInterface();
|
||||
initTooltip();
|
||||
initIme();
|
||||
} );
|
||||
}
|
||||
|
||||
// Early execute of init
|
||||
if ( document.readyState === 'interactive' ) {
|
||||
init();
|
||||
} else {
|
||||
$( document ).ready( init );
|
||||
}
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
||||
Reference in New Issue
Block a user