It looks like some globally-enabled gadgets on Commons (ext.gadget.Slideshow and ext.gadget.AjaxQuickDelete) are loading the jquery.ui library (which weighs ~350KB) on all pages on Commons – even on Special pages where they aren't being used.
I discovered this when looking at ways to optimize the performance of the new Special:MediaSearch page (see T271996). The QuickDelete help page states that the gadget won't be loaded on special pages, but this doesn't seem to be accurate any more.
Addressing this would save a lot of unnecessary JavaScript from being downloaded & executed in places where it won't provide any benefits to the user.
These are community-maintained gadgets so discussion and any potential changes will probably need to happen on-wiki; I'm creating this ticket to remind myself (and give others who may be interested visibility into the issue).