cancel
Showing results for 
Search instead for 
Did you mean: 

Load remote javascript in template

Re: Load remote javascript in template

@Sunil Patel thank you but this suggestion doesn't work either.

No error on loading the remote file, but the functions it contains are not made available and generate errors when called.

 

It's surprising that loading a remote javascript file directly in a template seems to be such a big challenge.

Re: Load remote javascript in template

add defer into script 

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Load remote javascript in template

yes, I have added defer as described in your suggestion, it doesn't seem to work.