Don't load Vue on page load

Loading skins.vector.search.codex.scripts pulls down Vue.js as
its a script-only module. It is not needed to display the appearance
menu so its presence here seems accidental.

Bug: T381030
Change-Id: I42be70b900340c4a3f10e5d31d1827ad9edd5e7a
This commit is contained in:
Jon Robson 2024-11-27 11:08:18 -08:00
parent 967e9d08c2
commit fdc064f714

View file

@ -76,8 +76,7 @@ function main( window ) {
if ( appearanceMenuExists ) {
mw.loader.using( [
'skins.vector.clientPreferences',
'skins.vector.search.codex.styles',
'skins.vector.search.codex.scripts'
'skins.vector.search.codex.styles'
] ).then( () => {
const clientPreferences = require( /** @type {string} */ ( 'skins.vector.clientPreferences' ) );
const clientPreferenceConfig = ( require( './clientPreferences.json' ) );