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

--- Comment #14 from Krinkle <[email protected]> 2012-08-26 01:06:21 UTC ---
As said before, it isn't a high priority because there is no need for it in the
current ResourceLoader environment. Everything is module based.

Urls in mw.loader.load is only used by legacy wikibits.js code coming from
importScriptURI and importStylesheetURI, with mw.loader.load(url, 'text/css').

And for anything that does need urls, $.getScript can be used with a nice
Promise interface, which can be multiplexed with $.when to callback multiple
urls.

(In reply to comment #10)
> Maybe the use of full urls on mw.loader.load should just be deprecated in 
> favor
> of jQuery.getScript and keep mw.loader.load only for modules...
> 

We probably won't remove it in MediaWiki as there is no gain in removing it, as
we'd need a replacement somewhere else to still cover legacy importScriptURI
and importStylesheetURI. But discouraging use of it, sounds good to me.

-- 
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