Further reduce WebResource.axd calls

3 posts, 0 answers
  1. TonyG
    TonyG avatar
    239 posts
    Member since:
    Feb 2006

    Posted 22 Oct 2010 Link to this post

    Even with a script manager I'm still getting WebResource.axd requests for js files that include:
    • function WebForm_FindFirstFocusableChild(control)
    • function WebForm_PostBackOptions
    Any idea how I can get those documents handled by the script manager?

  2. Simon
    Simon avatar
    2281 posts

    Posted 03 Nov 2010 Link to this post

    Hi TonyG,

    These 'archaic' scripts are served separately and are not registered through the ScriptManager, so we cannot combine them.

    In ASP.NET 4.0 this has been patched to some extent so the least you can do is to run your site under ASP.NET 4.0 and explicitly register the scripts as one composite in the (Rad)ScriptManager on the page, e.g.:
            <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" />
            <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />

    Now you will get one request instead of two for the two scripts. If you use RadScriptManager with script combining you will get two requests in total - one for the scripts above and one for all other combined scripts.

    I hope this helps.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 16 Feb 2011 Link to this post

    I wanted to follow up that I successfully used Simon's recommendation to reduce my HTTP requests on my pages by at least 1, sometimes up to 3 requests as verified by HttpWatch.

    Also if anyone is wondering the format is as follows:

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true" LoadScriptsBeforeUI="true">
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />            </Scripts
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" />
                <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />
            <asp:ServiceReference Path="~/WebServices/SessionService.asmx" />  
Back to Top