@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.
Other references from @Ladsgroup,