Talk:Snippets/Purge action

Vector support?
I just tried this script out and it didn't seem to work with Vector. It works fine with Monobook. Has this been tested with Vector? Is there some reason it wouldn't work currently? --MZMcBride 03:14, 25 August 2011 (UTC)
 * How did you try it? When I dump the snippet into the FireBug Console and run it I get a purge link in the p-cactions dropdown menu. Amalthea 07:16, 25 August 2011 (UTC)
 * I put the code at testwiki:User:MZMcBride/killionboob.js (imported into /monobook.js). I have a "*" tab in Monobook, but in Vector I only see protect/delete/move in the drop-down menu (using a URL like http://test.wikipedia.org/wiki/Easytimelinetest?useskin=vector). Chrome/OS X. --MZMcBride 19:33, 25 August 2011 (UTC)
 * Imported in /monobook.js, but not in /vector.js. :) Amalthea 20:15, 25 August 2011 (UTC)
 * Oh, hah. I'm a moron. Thanks. --MZMcBride 22:34, 25 August 2011 (UTC)

Strange loading
$.when(mw.loader.using(['mediawiki.util', 'mediawiki.api', 'mediawiki.notify']), $.ready).then(function, forgive my ignorance, but can you break down the above line? What is different between this and simply listing the modules as dependencies in the gadget definition? It implies the code has to wait for the modules to load, but does listing the dependencies (or .using) not do that by default?   07:44, 19 May 2016 (UTC)