We have merged a couple changes so that jQuery UI is not loaded by code that doesn't need it. See https://bugzilla.wikimedia.org/show_bug.cgi?id=55550 for details.
That means gadgets and user scripts that use jQuery UI should explicitly load the appropriate module. https://www.mediawiki.org/wiki/Extension:Gadgets has info on adding gadget dependencies.
User scripts can use mw.loader.using (https://www.mediawiki.org/wiki/RL/DM#mw.loader.using).
A list of jquery.ui modules is at https://www.mediawiki.org/wiki/RL/DM#jQuery_UI .
There is one remaining issue that may affect a few wikis. If your wiki uses jquery.ui buttons in wikitext, the styles will not be loaded unless something explicitly loads or depends on jquery.ui.
If you notice styles missing from your wiki, you can add:
// Load jquery.ui.button so button styles work in wikitext mw.loader.using( 'jquery.ui.button' );
to the site Common.js
Don't do this unless it's actually needed, since this does have a performance impact (although it is not loading all of jquery.ui). If you do add it, please include the comment so people know why it's being loaded.
This will roll out to the test wikis, plus MW.org, 2013-10-31, the remaining non-Wikipedia wikis the 4th, and the Wikipedias, the 7th.
Matt Flaschen
On 10/31/2013 01:14 AM, Matthew Flaschen wrote:
// Load jquery.ui.button so button styles work in wikitext mw.loader.using( 'jquery.ui.button' );
Commons is now doing this conditionally, only if the CSS class is present on the page (or specifically the HTML from wikipage.content). See https://commons.wikimedia.org/wiki/MediaWiki:Common.js .
There's also some discussion at the English Wikipedia village pump ((https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technic...). For when that gets archived, the permalink is https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical...
Matt Flaschen
wikitech-ambassadors@lists.wikimedia.org