Include needed syncfusion scripts only

Hi,
I want to ask regarding scripts that is included in a page,
Can we include used syncfusion control only in a page (for JS1 and JS2) ?
Example : my page only display Syncfusion Grid, I wish to include only syncfusion grid in the JS, not other syncfusion control as i see that the JS size goes to 20MB.

1 Reply

VN Vignesh Natarajan Syncfusion Team October 4, 2018 01:05 PM UTC

Hi Trinquier, 
 
Thanks for using Syncfusion products. 
 
Query : Can we include used syncfusion control only in a page (for JS1 and JS2) ? 
 
For EJ1 (JS1) 
 
Yes we can refer the individual scripts that are required for specific control alone. Kindy refer the below UG documentation for list of dependency script that are required to render a Grid.  
 
 
You can generate the custom scripts using Custom Script generator ( https://csg.syncfusion.com/ ). You can select required components  and generate the script of your own. Refer the below screenshot 
 
 
  
Note: Ensure to select the dependent components like ejCheckbox,ejButton etc (from the Getting started document) to select before generating the scripts.  
   
For EJ2 (JS2) 
 
You can use our Custom resource generator (https://crg.syncfusion.com/) for generating individual scripts file for the components. This allow us to generate the Grid script based on its features by selecting the required feature modules from the check list.  
  
    
 
 
Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon