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:
eranroz
2016-07-16 13:25:04 +03:00
committed by Amire80
parent c8002af92c
commit abaddfaccd
3 changed files with 30 additions and 17 deletions

View File

@@ -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 ) );