I was looking at Vector-2022's JavaScript payload today and noticed that there is a request that downloads 196 kB of uncompressed JavaScript (27.3 kB after gzip) on page load. The bulk of this is related to the mw.config.values.wbSiteDetails module downloaded from the Wikibase extension.
Notably, this module does not download on page load for legacy Vector. It appears this is due to a skin script.
Questions:
- What is the purpose of all of this JavaScript?
- Does it need to download during page load? Can it be lazy loaded?
Acceptance Criteria
- Clarification to the preceding questions
- Create tickets if necessary