You split your HUGE app into many small modules an...
# javascript
k
You split your HUGE app into many small modules and you get a small JS file for each one. Then you simply configure require.js and all's done