From fdc064f714b8def827925c861c3cae9f302ac0b8 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Wed, 27 Nov 2024 11:08:18 -0800 Subject: [PATCH] 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 --- resources/skins.vector.js/skin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/skins.vector.js/skin.js b/resources/skins.vector.js/skin.js index 4479bc2a4..d6c71f25a 100644 --- a/resources/skins.vector.js/skin.js +++ b/resources/skins.vector.js/skin.js @@ -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' ) );