We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

css and js files slow down my system

I have a css and js file from csg. I put this on my layout page. but my pages slowed down considerably. How do I make it faster?



3 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team October 9, 2019 04:07 PM UTC

Hi Tayfun, 

Thanks for contacting Syncfusion support. 

Maybe scripts and CSS files size cause this problem. The following two ways to reduce the time while initial Grid rendering,  
Compress the ZIP file using GZIP  
We suggest you to use GZip. If you use the GZip for compressing the file size, you will have optimal solution in the production server. Please refer to the documentation for information on GZip.    

Referring Grid dependent files alone:     
We can also refer individual files for rendering the Grid control instead of referring the ej.web.all.min.js file. Please refer to the below documentation, where we have listed out the dependent files for rendering the Grid control. Because its reduce the file size and also reducing the load time while page gets again build. Please refer to the Help documentation for more information,  

We can find the above mentioned files from the below mentioned installed location.     
Script Location:      
C:\Program Files (x86)\Syncfusion\EssentialStudio\XX.X.X.XX\JavaScript\assets\scripts\web     
Here, XX.X.X.XX denotes the Product Version such for example,       


Farveen sulthana T

TU tayfun uyrun October 14, 2019 11:49 AM UTC

Can you make me an example.
With Grid, I'm just listing data.
I have more than 10 dependencies when I look at the page but I use a few of them
please help me

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team October 16, 2019 04:37 AM UTC

Hi tayfun, 
We have prepared simple sample with dependencies which is necessary to render the Grid. Refer to the below files in Layout.cshtml:- 
 <link rel='nofollow' href="https://cdn.syncfusion.com/" rel="stylesheet" /> 
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script> 
    <script src="@Url.Content("~/Scripts/jsrender.min.js")"></script>> 
    <script src="https://cdn.syncfusion.com/"></script> 
    <script src="https://cdn.syncfusion.com/"></script> 
    <script src="https://cdn.syncfusion.com/"></script> 
    <script src="https://cdn.syncfusion.com/"></script> 
    <script src="https://cdn.syncfusion.com/"></script> 
Note:- In this sample we have referred the dependencies to render the Grid alone. If you want to add any controls like scroller, dialog, you need to add corresponding dependent files as like documentaion 
Please get back to us if you need any further assistance. 
Farveen sulthana T 

Live Chat Icon For mobile
Up arrow icon