https://bugzilla.wikimedia.org/show_bug.cgi?id=32169
--- Comment #7 from Roan Kattouw <[email protected]> 2011-11-11 12:14:40 UTC --- (In reply to comment #6) > 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]]). > Loading Gadgets from a remote wiki is a solved problem in the RL2 branch. mw.loader.load( 'gadget.foobar' ) (or mw.loader.using for that matter) will Just Work and will know which modules to load from which domain. > 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. Yes, if you're an admin you can do this. If you're not an admin, you're screwed. That's a problem. -- 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
