Use require.js to ensure that JS files are executed only after loading completes
Issue #8
resolved
Intermittent page update problems could be suggesting that the Javascript files are not loading in order and that is causing problems for Angular. Use require.js or a similar approach to guarantee that resource loading completes before any script execution happens.
Comments (3)
-
reporter -
reporter Have moved all Angular application script directives to the bottom of the HTML page. The core script libraries (ex. JQuery, Bootstrap, Angular) are declared in the page head.
-
reporter - changed status to resolved
Used Angular's async loader instead of require.js to ensure execution starts only after all files are loaded.
- Log in to comment
Have added app-compact.sh and app-minify.sh scripts. These scripts compile the separate Angular script files into app.js, controllers.js, directives.js, filters.js and services.js. The minify script reduces the file size.