Page MenuHomePhabricator

oojs-ui.styles.textures. oojs-ui.styles.icons, oojs-ui.styles.indicators and oojs-ui.styles loaded in head of mobile despite not being used
Closed, ResolvedPublic

Description

I'm not sure what brings them in... I'm guessing Echo given the recent rewrite and how they were not there before but really they shouldn't be loaded on every page. Certainly not in the head. They are also causing visual regressions to our overlay close icon.

Event Timeline

Jdlrobson raised the priority of this task from to Unbreak Now!.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Backlog on the MobileFrontend board.
Jdlrobson subscribed.

These seem to be loaded by OutputPage::enableOOUI
What could be calling that on every single page on English Wikipedia? Any ideas?

Jdlrobson added a subscriber: Catrope.

@Catrope said he's looking to fix this for desktop too.

Change 238322 had a related patch set uploaded (by Catrope):
Don't load unused Echo JS/CSS on mobile

https://gerrit.wikimedia.org/r/238322

Change 238322 merged by jenkins-bot:
Don't load unused Echo JS/CSS on mobile

https://gerrit.wikimedia.org/r/238322

Thankfully these are no longer showing up when i run mw.loader.inspect() on both enwiki and BC. Thanks for the prompt fix!