https://bugzilla.wikimedia.org/show_bug.cgi?id=29301

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |javascript, performance

--- Comment #4 from [email protected] 2012-08-01 21:05:39 UTC ---
What about this?
-------------------------------------------------------------------------------
var gadgetsList = $.grep( mw.loader.getModuleNames(), function( module ){
    return module.substr(0,11) === 'ext.gadget.' && $.cookie( module ) === '1';
} );
mw.loader.load( gadgetsList );
-------------------------------------------------------------------------------


Then a page could have buttons which when clicked would execute thinks such as
this:
-------------------------------------------------------------------------------
$.cookie( 'ext.gadget.HotCat', 1 );
-------------------------------------------------------------------------------

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to