开发者

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

开发者 https://www.devze.com 2022-12-25 18:55 出处:网络
in Ms-Ajax suppose iam downloading 3 files , no dependencies have been defined b/w them Sys.loadScripts([\'file1.js\',开发者_开发问答file2.js\',file3.js\']);

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

精彩评论

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

关注公众号