Steps to replicate the issue (include links if applicable):
- Visit https://en.wikipedia.org/ in an incognito window
- Run mw.loader.getState('vue') in console
What happens?:
`
Vue is loaded.
What should have happened instead?:
Vue is not needed so shouldn't be loaded at this time.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Introduced in March 2024 by 182bb7519bb4
Requirement
Ensure Vue is not unnecessarily loaded on page load in scenarios where it is not needed.
BDD
Feature: Prevent unnecessary loading of Vue on page load
Scenario: Verify Vue is not loaded on page load
Given I am on https://en.wikipedia.org in an incognito window
When I run `mw.loader.getState('vue')` in the browser console
Then the output should display "registered" and not "loaded"Test Steps
Test Case 1: Verify Vue Loading State on Page Load
- Open an incognito browser window.
- Navigate to https://en.wikipedia.org.
- Open the browser developer console.
- Run the command mw.loader.getState('vue').
- AC1: Confirm the output states “registered” and not “loaded”.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T381030#10377896 |
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T381030#10394431 |

