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.