This is also another reason why the script tags in the
main.handlebars layout file are the last lines of the page; so, they are the last to load ensuring that the document has already been fully downloaded and is ready to be manipulated.
The real reason to put this at the bottom of you HTML is that, since this code will only be executed once the full DOM is loaded (thanks to the jQuery wrapper) it is better to load it last, after all the visible content is loaded. This is a usability/performance tweak, loading the more important parts of the page first.
Share this highlighthttp://www.safaribooksonline.com/a/web-development-with/45403/