MediaWiki talk:Gadgets-definition

Gadget usage

 * Special:GadgetUsage

Remove unneeded dependencies from FlatSidebar and CollapsibleNav
The gadgets definition currently lists…


 * FlatSidebar[ResourceLoader|top|dependencies=jquery.cookie,jquery.tabIndex,jquery.throttle-debounce|skins=vector]|FlatSidebar.js|FlatSidebar.css
 * CollapsibleNav[ResourceLoader|top|dependencies=jquery.cookie,jquery.tabIndex,jquery.throttle-debounce|skins=vector|type=general]|CollapsibleNav.js|CollapsibleNav.css

…(my emphasis) as dependencies, but neither gadget actually uses the jquery.throttle-debounce library (none of them call either of  or  ), so the dependency is incorrect.

In addition to being wasteful and contributing to poor performance for all users, jquery.throttle-debounce is in the process of being deprecated (see T213426) with the net result that it is generating a deprecation warning message in the javascript console. The dependency (the bolded bit) should therefore be removed. --Xover (talk) 08:08, 23 October 2019 (UTC)
 * has removed this and an equally unused dependency on jquery.tabIndex. --Xover (talk) 06:56, 26 October 2019 (UTC)

JavaScript enabled in the Site gadget
Are you aware that enabling JS for the Site gadget also disables it completely for users without JavaScript enabled (e.g. users of ancient browsers and security-minded users who explicitly disable JS), and delays the styles’ loading even for users with JS enabled? I don’t know what this gadget does, but for a gadget named “Site” I assume that the CSS is not only for content created by the JS. Please consider using a peer gadget to keep the styles work as before. —Tacsipacsi (talk) 21:26, 19 November 2020 (UTC)
 * I was not aware of that. I've a peer gadget called Site-styles. It seems to work for me with JS off, can you please check it? Thank you for the heads up, much appreciated.
 * FYI, the Site gadget now also contains the JS which produces the page footers, which has just been moved out of Mediawiki:Common.js. Inductiveload— talk/contribs  21:40, 19 November 2020 (UTC)