开发者

Telerik basic question

I've just come across a web开发者_JAVA百科site on our intranet and found that on every page click it downloads a different set of JavaScript frameworks (like jQuery) and compiles them all into one file. They are quite large (600k-900k) and with a unique identifier, these are never cached.

This confuses and concerns me. Is it really downloading almost a MB of JavaScript on every new page? Or is there some kind of funky caching happening that I'm not aware of?


Newer versions of the RadControls for ASP.NET AJAX have CDN support - you will get all the scripts from the Amazon CloudFront content delivery service. If they are using embedded resources for the scripts (ScriptResource.axd, Telerik.Web.UI.WebResource.axd) then make sure that the site is running in release mode (<compilation> element in Web.Config). Finally, if the site is using the RadScriptManager control and combines all scripts into one request, it is possible that each page has a different set of controls, so the combined request will be different. This means that it will be downloaded at least once on each page until all possible control configurations are exhausted. After that the script content should be cached in the browser.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜