X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fstartup.js;h=7e7548106fe66849bd7a7c32f2601d5d80815b43;hb=22ff706ce0cfd51b50fb33201f2570a39e87212b;hp=41bcbaad3c839d88ca3e687a6293c681e4df5f9f;hpb=b0494b29097eaff97073f01e3427f2629eedadc1;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/startup.js b/resources/src/startup.js index 41bcbaad3c..7e7548106f 100644 --- a/resources/src/startup.js +++ b/resources/src/startup.js @@ -2,19 +2,9 @@ * This file is where we decide whether to initialise the Grade A run-time. * * - Beware: This file MUST parse without errors on even the most ancient of browsers! - * - Beware: Do not call mwNow before the isCompatible() check. */ -/* global mw, mwNow, isCompatible, $VARS, $CODE */ - -// Define now() here to ensure valid comparison with mediaWikiLoadEnd (T153819). -window.mwNow = ( function () { - var perf = window.performance, - navStart = perf && perf.timing && perf.timing.navigationStart; - return navStart && typeof perf.now === 'function' ? - function () { return navStart + perf.now(); } : - function () { return Date.now(); }; -}() ); +/* global mw, isCompatible, $VARS, $CODE */ /** * See @@ -147,7 +137,6 @@ window.isCompatible = function ( str ) { }; } - window.mediaWikiLoadStart = mwNow(); if ( window.performance && performance.mark ) { performance.mark( 'mwStartup' ); }