@Ladsgroup noticed that these two extensions are nicely decomposed into a large number of ResourceLoader modules. Unfortunately, this means that every Wikimedia page request includes the names of all of our modules, which adds up to 1.6kB uncompressed and 600B compressed, during the HEAD load which impacts overall page render time. We should either make these modules load conditionally, only when needed, or use something like Webpack to build one or two modules instead. The latter approach is already in use by Wikibase client, so we can learn from their experiences.
- Mentioned In
- rERSL111d108150eb: Merge some resource loader modules
- Mentioned Here
- rESCCd6b5d441b2a2: Merge ext.TwoColConflict.Settings into ext.TwoColConflict.Split.Tour
T203696: Drastically reduce the number of ResourceLoader modules that WikibaseClient registers
T202154: Audit modules 2018: Reduce registry overhead
Other references from @Ladsgroup,