合并对 ​​ScriptResource.axd 的多个调用

combining multiple calls to ScriptResource.axd

我正在尝试尽量减少对 ScriptResource.axd 的调用,但我失败了。下面是结果

Uaing .Net 4.0,AjaxControlToolkit ver 4.1.60919.0 和 ScriptManager 添加为

<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
        <CompositeScript>
            <Scripts>
                <asp:ScriptReference name="MicrosoftAjax.js"/>
                <asp:ScriptReference name="MicrosoftAjaxWebForms.js"/>
                <asp:ScriptReference name="Compat.Timer.Timer.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
                <asp:ScriptReference name="Common.Common.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
                <asp:ScriptReference name="Animation.Animations.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
                <asp:ScriptReference name="ExtenderBase.BaseScripts.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
                <asp:ScriptReference name="CollapsiblePanel.CollapsiblePanelBehavior.js" assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>

我的网站运行良好,但突然间客户开始抱怨速度太慢。我从客户端检查了该网站,发现 每次点击大约需要。 10 秒,无论是数据库调用还是简单循环,最多 30 秒。

我查了一下,发现Application_BeginRequestApplication_EndRequest之间的时间不到一秒。然后在 IE Profiler 上我开始知道有对 ScriptResource.axd 的各种调用,因此试图缩小这些调用。

请帮忙告诉我这些配置有什么问题。

编辑 到目前为止,在缩小对 ScriptResource.axd 的调用方面没有成功。我非常确定

every single click takes approx. 10 seconds

因为多次调用 ScriptResource.axd。如果是其他原因导致了这么长时间的延迟,请指导我朝着正确的方向前进。

有一个 DropDownList,其中在客户端加载了约 30,000 条记录。这是出乎意料的。我用查找屏幕替换了这个 DropDownList,一切开始按预期工作。