2011/2/18 Philip Tzou <philip....@gmail.com>:
> jQuery's ajax method provides a better way to load a javascript, and it can
> detect when the script would be loaded and excute the callback function. I
> think we can implement it to our mw.loader.load. jQuery.ajax provides two
> way (ajax or inject) to load a javascript, you should set cache=true to use
> the inject one.
>
I guess we could use this when loading stuff from arbitrary URLs in
the future, but for normal module loads the
mediaWiki.loader.implement() call in the server output works fine.

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to