mediawiki.filewarning: Use 'visibility: hidden' instead of 'display: none'
[lhc/web/wiklou.git] / resources / src / startup.js
index ac42854..1332459 100644 (file)
@@ -26,7 +26,7 @@ performance.mark( 'mediaWikiStartUp' );
  */
 
 /*jshint unused: false, evil: true */
-/*globals mw, $VARS, $CODE */
+/*globals mw, RLQ: true, $VARS, $CODE */
 function isCompatible( ua ) {
        if ( ua === undefined ) {
                ua = navigator.userAgent;
@@ -76,6 +76,16 @@ function startUp() {
 
        $CODE.registrations();
 
+       window.RLQ = window.RLQ || [];
+       while ( RLQ.length ) {
+               RLQ.shift()();
+       }
+       RLQ = {
+               push: function ( fn ) {
+                       fn();
+               }
+       };
+
        mw.config.set( $VARS.configuration );
 }