4 ms·
Having js and ces in single, cacheable external files will speed up later page loads on the site.
by asolove 12y ago
Having js and ces in single, cacheable external files will speed up later page loads on the site.
- protonfish 12y agoOnly to a degree, and then it starts making things worse. If your browser has to parse 20MB of CSS and JS (99.9% of which is not needed) to load a simple web page, it will be much slower than including only the necessary includes.
- asolove 12y agoYup. Once you have harder problems, you need harder solutions and you'll want to create a layered build with one cacheable file for common things used everywhere and then one separate file for each page's specific things. RequireJS and other front-end build tools are good at this: http://requirejs.org/docs/1.0/docs/faq-optimization.html http://requirejs.org/docs/1.0/docs/faq-optimization.html