Deprecate unconditional loading of mediawiki.ui.button on all pages
authorOri Livneh <ori@wikimedia.org>
Tue, 1 Sep 2015 18:40:27 +0000 (11:40 -0700)
committerOri.livneh <ori@wikimedia.org>
Tue, 1 Sep 2015 19:10:11 +0000 (19:10 +0000)
commitde862298032c6567785842e031239424fadaf1ad
tree09bc5d6ad6f6a9ff1304934bc4c6d6f016c14348
parente7edaa8b59e30e737ccd393b2ddb0506f4f8b208
Deprecate unconditional loading of mediawiki.ui.button on all pages

Formally deprecate the unconditional loading of mediawiki.ui.button on all
pages. During the deprecation period, the styles will be loaded on pages which
contain 'mw-ui-button' in the page HTML. Starting with 1.28, the styles will
only be loaded if explicitly depended upon.

The rationale for the patch was expressed by Spage in a comment on PS4 of
I835f3eb937: "Wikis have too many templates like
[[commons:Template:Clickable_button]] dependent on jquery.ui.button that don't
work if JavaScript isn't enabled.  mediawiki.ui.button is a lighter-weight
piece of CSS that we own and can improve, and transitioning wiki content to it
requires that we provide it." Mattflaschen commented that the added payload was
"justifiable if we announce this widely and make an effort to get wikis to use this."

A year and a half later, [[commons:Template:Clickable_button]] is still not
using mediawiki.ui.button, and usage elsewhere is not sufficiently widespread
to merit loading this stylesheet in the critical path.

Bug: T98395
Change-Id: I290e1db422b7c7b9c1a026aae22e174580cefae9
RELEASE-NOTES-1.26
includes/skins/SkinTemplate.php