https://bugzilla.wikimedia.org/show_bug.cgi?id=32169
--- Comment #6 from Beau <[email protected]> 2011-11-10 07:55:20 UTC --- That makes sense for a remote gadgets too. Instead of four mw.loader.load invocations there can be one (or two - depending on how styles are going to be supported), when loading gadgets from another wiki (for example: [[pl:s:MediaWiki:Gadget-searchbox.js]]). Nux, as a workaround for now, you can turn the main script into a ResourceLoader compatibile gadget (or just a small part of it, which provides a thin interface for extensions) and then use in extensions the following code: mw.loader.using( "ext.gadget.awesome", function() { // Register extension here } ); This will automagically load the main script and after the script is loaded, the callback will be executed. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
