According to this answer you might want to try to use defer
instead of async
, which leads to the browser to respect the loading order. E.g.:
<script src="scripts/vendor-including-angular.js" defer></script>
<script src="scripts/your-app.js" defer></script>