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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejs script reference using async or defer mode

Thread ID:





144113 Apr 19,2019 06:05 AM UTC May 6,2019 01:14 PM UTC ASP.NET Core - EJ 2 3
Tags: General
Asked On April 19, 2019 06:05 AM UTC


I have referred ejs scripts in my page in async or defer mode like given below, because this is JS file is very bog like 4 MB size. So that i am loading this file as asynchronous mode.

<script src="~/lib/ej2/ej2-CRMWeb.min.js" defer="defer" async></script>

But while loading the page it is showing the console error like ejs undefined

Please kindly help me to resolve this.

Thanks and Regards,

Kumaresan Subramani [Syncfusion]
Replied On April 22, 2019 10:37 AM UTC

Hi Mani, 
Currently we are validating your query. We will update the further details in one business day. 
Please let us know if you have any concern. 
Kumaresan S 

Replied On May 4, 2019 01:41 PM UTC

Hi kumresan,

Any update on this?

Vairamuthu Ramamoorthi [Syncfusion]
Replied On May 6, 2019 01:14 PM UTC

Hi Mani , 

Async parameter in script tag loads the script asynchronously. The execution of script manager starts before script is completely loaded, so it throws script error(ejs undefined). For reducing script loading time, we can generate component specific scripts (which is smaller in size) using Customer Resource Generator (CRG). Refer the below links for further details. 

CRG application link : https://crg.syncfusion.com/ 

Vairamuthu R 


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