[Wikitech-l] use jQuery.ajax in mw.loader.load when load script

2011-02-18 Thread Philip Tzou
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

Re: [Wikitech-l] use jQuery.ajax in mw.loader.load when load script

2011-02-18 Thread Roan Kattouw
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

Re: [Wikitech-l] use jQuery.ajax in mw.loader.load when load script

2011-02-18 Thread Michael Dale
On 02/18/2011 01:01 PM, Roan Kattouw wrote: 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.