How to split ej2.min.js

Hi,
I have a plan to split ej2.min.js (because it's too big)
I Found solution from https://www.syncfusion.com/forums/154749/it-takes-long-time-to-load-the-page-due-to-the-big-size-of-ej2-min- js-and-bootstrap-css
I want to split ej2.min.js into several parts :
right now I only need grid and textbox only..
So for the first .js I just select the grid only then download it and name it ej2.grid.min.js

for the second I just select the textbox only then download it and give it the name ej2.textbox.min.js

But when I put it like in the picture:

I found an error

The hope is that if one day I need a chart, I just need to download the chart

1 Reply 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team June 3, 2021 11:44 AM UTC

Hi Cahya, 

Greetings from Syncfusion support. 

From your query we can understand that you only want to use the Grid and textbox particularly instead of using all components to optimize the page loading speed. 

So we suggest you to download the Grid  and Textbox code in a single file and refer to the sample. Because sometimes the two different components may have same dependencies and which cause the reported issue while referring them into separate files. We can avoid this by selecting all the required components in a single file. Please refer the below screenshot and sample for more information. 

 



In our latest version of CRG we are having some issues in grid component and we have logged a new bug task (“Script error is thrown while creating sample using CRG file”) for the same. We will include the defect fix in our upcoming Volume 2, 2021 Main release which will be expected to rolled out in the month of June. 
   
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
   

Until the fix has been included we suggest you to use the lower versions(Ex: 19.1.54) of CRG for your requirement. 

Regards, 
Manivel 


Marked as answer
Loader.
Up arrow icon