Welcome to the Treehouse Community
Looking to learn something new?
Tzili Hod5,836 Points
Why is angular included in body tag?
Why is Angular included in the body tag as opposed to the head tag? Same for app.js.
It is best practice to put your script loads right before the closing body tag of your html. You should let you html structure load before trying to load in any JS files which could be long and take time to load. That way your user won't be stuck looking at a blank page while you JS files are loading. Here is a more in depth explanation https://teamtreehouse.com/community/best-practice-where-to-include-your-script-tags Let me know if you have any other questions.
Kevin McNamara7,483 Points
Related question: what does the vendor/angular.js script even do? I don't quite understand where that code is coming from, or what its purpose is. Thanks!