locked
Problem with Page load performance : some css is too large!! RRS feed

  • Question

  • User-79977429 posted

    Hi

    i've used third party controls (devexpress) for my webApp, at runTime it load a big css file (dxr.axd) which makes slow down page loading. To reduce size of dxr.axd devexpress recommand load some specific css style which needed. i found this link which used this syntax :

    @Html.DevExpress().GetStyleSheets(  
        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.NavBar, Theme = "DevEx" },  
        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.Menu, Theme = "DevEx" },  
        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.Splitter, Theme = "DevEx" },  
        new StyleSheet { ExtensionSuite = ExtensionSuite.Editors },  
        new StyleSheet { ExtensionSuite = ExtensionSuite.GridView }  
    )  
        @Html.DevExpress().GetScripts(  
        new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.NavBar },  
        new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.Menu },  
        new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout, ExtensionType = ExtensionType.Splitter },  
        new Script { ExtensionSuite = ExtensionSuite.GridView },  
        new Script { ExtensionSuite = ExtensionSuite.Editors }  
    ) 

    but i think it works for mvc whereas i'm using webForm.

    My question is that how to use it in my webform project to reduce size of dxr.axd ?

    Thanks in advance

    Wednesday, March 25, 2020 12:17 PM

Answers

All replies