mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-18 10:51:10 +00:00
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:
parent
967e9d08c2
commit
fdc064f714
|
@ -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' ) );
|
||||
|
|
Loading…
Reference in a new issue