3 ms·
+1 for the minimizing into one bundle thing. Sets of assets are loading sequentially which is slowing page load down. Your code in each js file seems self-cont
by Torn 10y ago
+1 for the minimizing into one bundle thing. Sets of assets are loading sequentially which is slowing page load down.
Your code in each js file seems self-contained, so a simple in-order file concatenation into one .js file as a build step would help. gulp and gulp-concat would do it in a few lines of node, and you'd push the built output to your site.
If you end up wrting so much script that a concatenation approach stops scaling, look into webpack and web modules.