Bug: T123457
Change-Id: Ice6ebb95bfcb2050f4813705467942f95f7e720c
* even the most ancient of browsers, so be very careful when editing.
*/
/*jshint unused: false, evil: true */
* even the most ancient of browsers, so be very careful when editing.
*/
/*jshint unused: false, evil: true */
-/*globals mw, RLQ: true, $VARS, $CODE, performance */
+/*globals mw, RLQ: true, NORLQ: true, $VARS, $CODE, performance */
var mediaWikiLoadStart = ( new Date() ).getTime(),
var mediaWikiLoadStart = ( new Date() ).getTime(),
// Conditional script injection
( function () {
// Conditional script injection
( function () {
if ( !isCompatible() ) {
// Undo class swapping in case of an unsupported browser.
// See OutputPage::getHeadScripts().
document.documentElement.className = document.documentElement.className
.replace( /(^|\s)client-js(\s|$)/, '$1client-nojs$2' );
if ( !isCompatible() ) {
// Undo class swapping in case of an unsupported browser.
// See OutputPage::getHeadScripts().
document.documentElement.className = document.documentElement.className
.replace( /(^|\s)client-js(\s|$)/, '$1client-nojs$2' );
+
+ NORLQ = window.NORLQ || [];
+ while ( NORLQ.length ) {
+ NORLQ.shift()();
+ }
+ window.NORLQ = {
+ push: function ( fn ) {
+ fn();
+ }
+ };
+
+ // Clear and disable the other queue
+ window.RLQ = {
+ // No-op
+ push: function () {}
+ };
+
+
+ // Clear and disable the other queue
+ window.NORLQ = {
+ // No-op
+ push: function () {}
+ };
- var script = document.createElement( 'script' );
+ script = document.createElement( 'script' );
script.src = $VARS.baseModulesUri;
script.onload = script.onreadystatechange = function () {
if ( !script.readyState || /loaded|complete/.test( script.readyState ) ) {
script.src = $VARS.baseModulesUri;
script.onload = script.onreadystatechange = function () {
if ( !script.readyState || /loaded|complete/.test( script.readyState ) ) {