As I prepare to launch my Single Page Application, I find myself in need of advice on how to optimize it for production. Despite my limited experience in this area, I have already combined and minified all my source files (Js, CSS) for use in the production environment.
Currently, I am loading the minified versions of my dependencies separately. This seems to be a common practice among websites, including the likes of the AngularJS website.
AngularJS dependencies
<script src="google-code-prettify/prettify.min.js"></script>
<script src="js/homepage.js"></script>
<script src="js/download-data.js"></script>
<script src="js/angular-ui-bootstrap.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.18/angular-resource.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.18/angular-route.min.js"></script>
<script src="https://cdn.firebase.com/js/client/1.0.18/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/angularfire/0.8.0/angularfire.min.js"></script>
<script src="//code.angularjs.org/1.3.0-beta.18/i18n/angular-locale_sk.js"></script>
A colleague has suggested consolidating the source and dependencies into two files - scripts.min.js (containing JS code for both source and dependencies) and styles.min.css (combining CSS code). But is this truly beneficial? Are there any downsides to this approach?
I have come across various posts discussing this issue, but unfortunately, I have yet to find a clear consensus on the matter.