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
465
Excessive Script References
posted

Hi, I have been noticing that the Infragistics controls are adding dozens of calls to ScriptResource.axd to my pages. Obviously the Javascript for the client side features has to get to the client somehow and you are doing it with ScriptResource.axd which is fine. The problem is how many there are. A standard rule of thumb for performance of a website is to reduce the number of referenced Javascript and CSS files. I'm attaching an example of a website with a WebDataGrid on it that does absolutely nothing, it's not even bound to any data, and the page renders with one reference to WebResource.axd and FIFTEEN references to ScriptResource.axd. That is ridiculous. Is there not some way to combine those scripts into one?

WebSite3.zip
Parents
  • 17590
    Offline posted

    Hello bartsipes,

    Thank you for posting in our community.

    What I can suggest for reducing the number of requests is using the Infragistics Content Delivery Network(CDN) to load your scripts.

    First the EnableCDN property should set to True. This property directs all Infragistics controls on the page to use CDN as the source for JavaScript files. This could be achieved as following:

    <ig:WebScriptManager runat="server">
            <InfragisticsCDN Enabled="True"></InfragisticsCDN>
    </ig:WebScriptManager>

    The CDN delivers JavaScript, CSS and Image files for all Infragistics controls. For the Infragistics ASP.NET AJAX controls, you have the option to retrieve a combined JavaScript file for all the controls; This option eliminates multiple requests for each controls JavaScript file. To enable Combining functionality, use the EnableCombining property of the WebScriptManager component as following:

       <ig:WebScriptManager runat="server">
            <InfragisticsCDN Enabled="True" EnableCombining="True"></InfragisticsCDN>
        </ig:WebScriptManager>

    I believe this approach will help you achieve your requirement.

    Please let me know if you have any additional questions regarding this matter.

Reply Children