Even without require.js' r.js optimization tool, having multiple source files like this is not necessarily a bad thing. Smaller files are more likely for browsers to cache them. If you concatenate all source files into one 5MB[1] file, it is unlikely the browser is going to cache that. This is more of a trade off than absolute best thing.
Comments
Even without require.js' r.js optimization tool, having multiple source files like this is not necessarily a bad thing. Smaller files are more likely for browsers to cache them. If you concatenate all source files into one 5MB[1] file, it is unlikely the browser is going to cache that. This is more of a trade off than absolute best thing.
[1]: http://serverfault.com/questions/338722/what-is-the-maximum-...