I am facing a challenge in my Ionic app. The issue arises when the cordova.js file containing a crucial plugin does not initialize until after the controllers.js script has been downloaded and executed. As a result, attempts to use the plugin in the controllers lead to an undefined error.
Is there a way to ensure that the controllers, app, and services scripts are loaded only after the cordova.js script has been successfully downloaded and executed?
Thank you for your assistance.