Page MenuHomePhabricator

No CSS loads when the browser's JS is disabled
Closed, ResolvedPublic

Description

For some reason the CSS seems to be loaded from client side, and the user can see the bar in the left of the page for a few moments before it gets centralized, and hides the list of chapters.

This thread on wikitech may be of some help:
http://www.gossamer-threads.com/lists/wiki/wikitech/363494

From
https://www.mediawiki.org/wiki/Manual:OutputPage.php#JavaScript_and_CSS

"addModuleStyles($modules): Add only CSS of one or more modules recognized by the Resource Loader. Module styles added through this function will be added using standard link CSS tags, rather than as a combined Javascript and CSS package. Thus, they will load even if the user's browser disables JavaScript (unless the browser also disables CSS). $modules can be a module name (string) or an array of module names."

I'm not sure if all the CSS need to be loaded this way, though.


Version: unspecified
Severity: normal

Details

Reference
bz51256

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:49 AM
bzimport set Reference to bz51256.
He7d3r created this task.Jul 12 2013, 7:22 PM

Change 73784 had a related patch set uploaded by Mollywhite:
Bug 51256: Load primary CSS separately from JavaScript.

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

Change 73784 merged by Mollywhite:
Bug 51256: Load primary CSS separately from JavaScript.

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