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.

1 Answer 1

-1

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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.