* - Beware: This file MUST parse without errors on even the most ancient of browsers!
*/
/* eslint-disable vars-on-top, no-unmodified-loop-condition */
-/* global mw, isCompatible, $VARS, $CODE */
+/* global isCompatible, $VARS, $CODE */
/**
* See <https://www.mediawiki.org/wiki/Compatibility#Browsers>
// https://caniuse.com/#feat=json / https://phabricator.wikimedia.org/T141344#2784065
( function () {
'use strict';
- return !this && !!Function.prototype.bind && !!window.JSON;
+ return !this && Function.prototype.bind && window.JSON;
}() ) &&
// https://caniuse.com/#feat=queryselector
// This embeds mediawiki.js, which defines 'mw' and 'mw.loader'.
$CODE.defineLoader();
- mw.requestIdleCallback( startUp );
+ startUp();
}() );