MediaWiki talk:Gadget-PurgeTab.js

Dependencies
George Orwell III: It seems the definition of this (default) gadget is loading the "mediawiki.api" module for everyone on every page, even if they don't click in the links provided by this gadget (which are the only things which really depend on the module). We could avoid sending these kb of code to our readers by means of calls to  inside the click event, instead of in the definition of the whole gadget. Helder 01:11, 23 August 2014 (UTC)
 * ✅ - removed the dependency for mediwiki.api. Will the "hard purge" still execute normally or do we need to add/remove something in the script itself? -- George Orwell III (talk) 01:32, 23 August 2014 (UTC)
 * P.S. - Can we make "hard purge" execute a forcerecursivelinkupdate instead of forcelinkupdate? Its far more useful than just updating the link tables. -- George Orwell III (talk) 01:50, 23 August 2014 (UTC)
 * I added the dependency to the script, so the module will still be loaded, but only when purging a page, to avoid an error when attempting to use the API.
 * You probably can do that. I don't know about any restriction to it (actually, I don't think I used "forcerecursivelinkupdate" before). Helder 01:52, 23 August 2014 (UTC)