O'Reilly logo
  • Dimitri Dhuyvetter thinks this is interesting:

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.

From

Cover of Web Development with MongoDB and Node.js

Note

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.