开发者

order of file download in MS-Ajax (asp.net-ajax )

in Ms-Ajax

suppose iam downloading 3 files , no dependencies have been defined b/w them

Sys.loadScripts(['file1.js',开发者_开发问答file2.js',file3.js']);

a> in which order these files will be loaded??

b> in which order these files will be made available to requesting page??


From what I can discover I think the answer to both questions is "Indeterminate". The loadScripts function will launch parallel script loads so in theory the smallest script available over the best bandwidth will complete first.

It's not absolutely clear but I also suspect this is a blocking call, i.e. it will not return until all scripts are loaded. To be honest it would be pretty useless if it did as you'd never know when in your page the scripts were available.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜