Rework the Preferences to prevent FOUC
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Sun, 1 Nov 2015 00:34:46 +0000 (01:34 +0100)
committerOri.livneh <ori@wikimedia.org>
Sun, 8 Nov 2015 19:42:56 +0000 (19:42 +0000)
commitdb7257ffd57b3c7153aea976195d7fb17995a228
tree8356e22a2662c7c1747356b6d1a6bdcf450ddc70
parent0f9242e0cde5687c43d90270a4d7841da109a677
Rework the Preferences to prevent FOUC

New styles modules that is always added, so that all JS specific styling
is guaranteed to load before first paint. Reworked the HTML to generate
the preftoc (hidden when user has no JS).

Set htmlform nolabel class to use !important, so that it doesn't get
overriden by the 20% width rule of labels.

Also requires changes to the skinstyles of Vector preferences, which
is an a separate patch (I59f0f45), and other skins.

Bug: T115692
Change-Id: I24d9b16ed6729fdf0d59adcc2f0ba16f4f621b44
includes/Preferences.php
includes/specials/SpecialPreferences.php
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.preferences.css [deleted file]
resources/src/mediawiki.special/mediawiki.special.preferences.js
resources/src/mediawiki.special/mediawiki.special.preferences.styles.css [new file with mode: 0644]
resources/src/mediawiki/mediawiki.htmlform.css