0

I need to add a custom script in my module and that script requires me to add defer in it. I have added the script in the requirejs-config.js file. But i am cannot see that script working. Although i am able to access objects from the custom script but some of the functionalities inside it are not working.

Please suggest how can i achieve the same.

0

Use below extension. this extension better for you.

https://github.com/fballiano/magento2-defer-javascripts

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.