resourceloader: Rename 'mediaWikiStartUp' mark to 'mwLoadStart'
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 3 Sep 2015 18:10:51 +0000 (19:10 +0100)
committerOri.livneh <ori@wikimedia.org>
Fri, 4 Sep 2015 00:25:40 +0000 (00:25 +0000)
By ending with "Start" we can create a sensibly named "mwLoadEnd".
Also calling it LoadStart instead of StartUp so that it matches
the mediaWikiLoadStart global.

Abandoning 'mediaWiki' as prefix since that's a left-over from the
mediawiki.js global variable, as abbreviation 'mw' makes more sense
or full on 'MediaWiki' (with proper capital 'M').

Change-Id: I3ab0ddf53ccb83db87d705b670cf5c46516b4488

resources/src/startup.js

index 197a672..1d1455c 100644 (file)
@@ -12,7 +12,7 @@ if ( !window.performance ) {
 if ( !performance.mark ) {
        performance.mark = function () {};
 }
-performance.mark( 'mediaWikiStartUp' );
+performance.mark( 'mwLoadStart' );
 
 /**
  * Returns false for Grade C supported browsers.