resourceloader: Move mw.libs and mw.widgets from startup to mediawiki.base
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 2 Aug 2019 14:39:49 +0000 (15:39 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 2 Aug 2019 14:42:54 +0000 (15:42 +0100)
These are not needed to help define mw.loader or to process RLQ,
as such, it does not need to be in the critical path. This can
instead download as part of mediawiki.base which loads concurrently
with regular modules (but will execute first).

Change-Id: I43f21706206aa7cb6fb779c68325623e07724125

resources/src/mediawiki.base/mediawiki.base.js
resources/src/startup/mediawiki.js

index 00a74fe..4c8880c 100644 (file)
         * @singleton
         */
 
+       /**
+        * Empty object for third-party libraries, for cases where you don't
+        * want to add a new global, or the global is bad and needs containment
+        * or wrapping.
+        *
+        * @property
+        */
+       mw.libs = {};
+
+       // OOUI widgets specific to MediaWiki
+       mw.widgets = {};
+
        /**
         * @inheritdoc mw.inspect#runReports
         * @method
index ace92f0..4ffe102 100644 (file)
                 */
                config: new Map( $VARS.wgLegacyJavaScriptGlobals ),
 
-               /**
-                * Empty object for third-party libraries, for cases where you don't
-                * want to add a new global, or the global is bad and needs containment
-                * or wrapping.
-                *
-                * @property
-                */
-               libs: {},
-
                /**
                 * Store for messages.
                 *
                         * @property {mw.Map}
                         */
                        tokens: new Map()
-               },
-
-               // OOUI widgets specific to MediaWiki
-               widgets: {}
+               }
 
        };