When I go to
https://en.wikipedia.org/w/index.php?diff=123456
and type mw.loader.getState('mediawiki.action.history.diff') in the JS console of Firefox, I get "registered". But this is a CSS-only module, so I think it should return "ready" when the CSS is being applied to the page (which is the case on diff pages).
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
Feel free to close this as invalid if I misunderstood the intended behavior...
(an explanation is welcome in that case)
Comment Actions
This is currently the expected behavior (so: not a bug, works as designed), but the behavior is clearly suboptimal and has bitten people in the past. It recently became a bigger problem for VisualEditor and OOjs UI, so we're working on changing it on T92459. It seems that there's no bug filed for this particular result of how addModules() vs addModuleStyles() work, so I just marked the dependencies.