2

asp.net cdnサイトを読むと、次のように読みました

ASP.NET 4 を使用すると、ASP.NET フレームワーク スクリプトのすべての要求を CDN にリダイレクトできます。ローカル Web サーバーではなく CDN からスクリプトを取得すると、パブリック ASP.NET Web サイトのパフォーマンスが大幅に向上します。

ScriptManager EnableCDN プロパティを使用して、すべての ASP.NET フレームワーク スクリプト要求を Microsoft Ajax CDN にリダイレクトします。

<asp:ScriptManager ID="ScriptManager1" EnableCdn="true" Runat="Server" />

これは、テンプレートのasp.net Webサイトで、マスターページで作成されたスクリプトマネージャーが、その下のスクリプトを含めて削除されることを意味しますか?

たとえば、これを削除しますか。

<asp:ScriptManager runat="server" >
    <Scripts>
        <%--Framework scripts--%>
        <asp:ScriptReference Name="MsAjaxBundle" />
        <asp:ScriptReference Name="jquery" />
        <asp:ScriptReference Name="jquery.ui.combined" />
        <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
        <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
        <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
        <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
        <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
        <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
        <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
        <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
        <asp:ScriptReference Name="WebFormsBundle" />
        <%--Site scripts--%>
    </Scripts>
</asp:ScriptManager>

と置き換えます。

<asp:ScriptManager ID="ScriptManager1" EnableCdn="true" Runat="Server" />

その CDN は、jquery とそのサブセット、および ajax コントロール ツールキット ファイルを含む、私たちが要求するすべてのファイルを配信しますか?

4

0 に答える 0