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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

css and js files slow down my system

Thread ID:

Created:

Updated:

Platform:

Replies:

148159 Oct 8,2019 02:35 PM UTC Oct 16,2019 04:37 AM UTC ASP.NET MVC 3
loading
Tags: Grid
tayfun uyrun
Asked On October 8, 2019 02:35 PM UTC


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?

before

after


Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On 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,  
https://help.syncfusion.com/js/grid/getting-started     
https://help.syncfusion.com/aspnetmvc/dependencies 

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, 17.2.0.34       

Regards,

Farveen sulthana T


tayfun uyrun
Replied On 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

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On 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/17.3.0.14/js/web/flat-azure/ej.web.all.min.css" 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/17.3.0.14/js/common/ej.core.min.js"></script> 
    <script src="https://cdn.syncfusion.com/17.3.0.14/js/common/ej.data.min.js"></script> 
    <script src="https://cdn.syncfusion.com/17.3.0.14/js/common/ej.globalize.min.js"></script> 
    <script src="https://cdn.syncfusion.com/17.3.0.14/js/web/ej.grid.min.js"></script> 
    <script src="https://cdn.syncfusion.com/17.3.0.14/js/web/ej.pager.min.js"></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. 
 
Regards, 
Farveen sulthana T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon