Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Too Many ScriptResource.axd downloads
posted

I am trying to clean up an implementaiton of some infragistics controls.  For all intents and purposes the site works just fine, and I don't want to overhaul it.  It definitely has too many "elements" on it which is causing something like 40 ScriptResources to download. As far as I can tell they aren't caching, and some of the different profiling tools I have been using have been showing some HUGE times.  Does anyone have any ideas on how I can try to reduce, or at least cache the, ScriptRefence calls?

Parents
No Data
Reply
  • 5368
    Offline posted

    First, double-check that your website is not in debug mode.  If the <compilation debug="true"/> is set in the web.config, then the browser is instructed to requery the server for every resource on every refresh.

    Also, you need to have a look at using the WebScriptManager instead of the asp:ScriptManager.  This opens up use of the CDN and also allows you to use the EnableCombining property which allows the scripts to be combined.

    Here is the magic link!

    http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/?page=Web_Infragistics_Content_Delivery_Network_CDN.html

    If you use the WebScriptManager, then you also have the option of setting the EnableCDN and EnableCombining properties for the entire website using an entry in the web.config.

    Just one word of caution on the CDN... I have not been able to use it because I am using some of the legacy controls (the old UltraWebGrid and the old menu control), and some of the images are not on the https:// version of the CDN.  But if you are not using legacy controls, then you should be good to go.

Children