Archived topic
Autoptomize vs. separate .js and .css files
3 replies · Started by NBC on August 17, 2016
This really isn't a GP question per se, but it's relevant to the way I'm setting up a GP/GP Premium-based site, so I'm asking here.
When I look at the code underlying most big websites, their JS and CSS code live in files linked to the pages that load. Autoptomize crams every ounce of that code into every page.
How is this more efficient than separate .js and .css files?
The more separate css and JS files, the more HTTP requests are sent on every page load.
So by combining them all into one or two files reduces the amount of HTTP requests and speeds up your site.
Point taken. Thanks, Tom!
No problem :)