In the spirit of T271994, is there any way we can stop loading jquery.ui on Special:MediaSearch? This dependency is introduced by 3rd-party gadgets ( ext.gadget.Slideshow and ext.gadget.QuickDelete ) so the process won't be as simple as just re-working something in our code. However, jQuery UI is huge (around 350KB uncompressed - it's an entire JS framework essentially) and it's not being used here. Neither of these gadgets is compatible with this page.
It should be possible to disable all 3rd-party gadgets on Special:MediaSearch by adding: OutputPage->disallowUserJs();. Commons uses a gadget to translate page content (instead of the standard ULS widget); presumably this would also be disabled. Would this be acceptable? The page UI is already internationalized.
Alternatively, we could investigate the two gadgets in question and see if there is a way to prevent them from loading their dependencies on Special:MediaSearch. This would involve getting the community maintainers (assuming the gadgets are maintained) to agree to the changes.
Some useful links:
- Commons Gadgets: https://commons.wikimedia.org/wiki/Special:Gadgets
- Commons Gadget Definitions: https://commons.wikimedia.org/wiki/MediaWiki:Gadgets-definition
- Slideshow source code: https://commons.wikimedia.org/wiki/MediaWiki:Gadget-GallerySlideshow.js
- Slideshow help page: https://commons.wikimedia.org/wiki/Help:Gadget-GallerySlideshow
- QuickDelete source code: https://commons.wikimedia.org/wiki/MediaWiki:Gadget-QuickDelete.js
- QuickDelete help page: https://commons.wikimedia.org/wiki/Help:QuickDelete
- AjaxQuickDelete (QuickDelete pulls in this gadget as a dependency; this is the one that actually depends on jQuery UI): https://commons.wikimedia.org/wiki/MediaWiki:Gadget-AjaxQuickDelete.js
- AjaxQuickDelete Discussion: https://commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-AjaxQuickDelete.js