MediaWiki talk:Gadgets-definition

From Wikisource
Jump to navigation Jump to search

Gadget usage[edit]

data 20180520[edit]

GadgetNumber of usersActive users
charinsertDefaultDefault
collapsibleTablesDefaultDefault
dynamicLayoutOverridesDefaultDefault
Easy_LSTDefaultDefault
PurgeTabDefaultDefault
SiteDefaultDefault
WSexportDefaultDefault
TemplatePreloader71735
HotCat65237
UTCLiveClock43829
popups43720
edittop36716
ocr36752
RegexMenuFramework36020
HideFundraisingNotice32825
refToolbar28711
dictLookup2858
addsection-plus26610
mark-proofread21121
Fill_Index20629
specialchars20110
BookMaker18310
ContrastReducer17110
robot17122
userMessages1696
NopInserter15321
WhatLeavesHere1507
pr_test_layout1355
altindex1316
markblocked1236
ShowMessageNames1165
pilcrowMarkers10915
DefaultSummaries1028
Font-Awesome1016
collapseElements814
DebugMode764
PopCategoryDisplay571
CollapsibleNav564
BugStatusUpdate492
CurIDLink352
FlatSidebar322
CleanDeleteReasons152
dynamicNavBars[1]90
massdelete86
  1. removed 20180520

Remove unneeded dependencies from FlatSidebar and CollapsibleNav[edit]

{{edit protected}} 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 $.debounce() or $.throttle()), 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 phab: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)[reply]

Krinkle has removed this and an equally unused dependency on jquery.tabIndex. --Xover (talk) 06:56, 26 October 2019 (UTC)[reply]

JavaScript enabled in the Site gadget[edit]

@Inductiveload: 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)[reply]

@Tacsipacsi: I was not aware of that. I've made it 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. Inductiveloadtalk/contribs 21:40, 19 November 2020 (UTC)[reply]