[Resolved] Autoptomize vs. separate .js and .css files

Home Forums Support [Resolved] Autoptomize vs. separate .js and .css files

Home Forums Support Autoptomize vs. separate .js and .css files

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #218898
    NBC

    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?

    #219016
    Tom
    Lead Developer
    Lead Developer

    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.

    #219054
    NBC

    Point taken. Thanks, Tom!

    #219070
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.