Concatenating all scripts into a single .js file would greatly reduce the number of blocking HTTP requests, and result in better initial page loading times.
Additionally, the concatenated file could be minified (I’d recommend YUI Compressor) to save even more bytes.
This should of course be automated through a build script — it’s a pain to do manually.
Alternatively, a script loader such as LABjs or yepnope could be used, but in this case (single-page web app) that seems overkill.
Concatenating all scripts into a single
.js
file would greatly reduce the number of blocking HTTP requests, and result in better initial page loading times.Additionally, the concatenated file could be minified (I’d recommend YUI Compressor) to save even more bytes.
This should of course be automated through a build script — it’s a pain to do manually.
Alternatively, a script loader such as LABjs or yepnope could be used, but in this case (single-page web app) that seems overkill.