best setup for Autoptimize.

Group: SpeedGoal: Speed
Autoptimize icon
  • 13checks in the recipe
  • 12set for you
  • 1shown as steps
  • 4to take care with

Short answer

Optimize HTML, CSS and JavaScript, but do not aggregate JavaScript, and leave the cart, the checkout and logged in users alone. Remove the emoji script and query strings, and lazy load images in one place only.

The Tunewise recipe for Autoptimize looks at 13 checks. It starts with: HTML optimized; CSS optimized; JavaScript optimized. Tunewise changes 12 for you, and shows you the steps for 1. 4 need extra care.

Last checked on 2026-10-15.

Before and after, one check at a time
  • HTML optimizedafter: set for you
  • CSS optimizedafter: set for you
  • JavaScript optimizedafter: set for you
  • JavaScript not aggregatedafter: set for you
  • JavaScript deferredafter: set for you

These are real checks from the Autoptimize recipe. The ring above fills as each one is done. The picture shows the order of work, not your shop.

Good to know

  • Aggregating scripts changes their order and breaks checkout and slider scripts.
  • Optimizing scripts for logged in users gains nothing and can break editing.
  • Running two lazy loaders delays images on phones.

the setup, step by step.

The "why" below is what Tunewise tells a shop where the check applies. Tunewise first reads your shop, so you only see the checks that fit it.

  1. HTML optimized

    Low riskTunewise changes it for youHTML
    Why
    The HTML of your pages ships with whitespace and comments.
  2. CSS optimized

    Low riskTunewise changes it for youCSS
    Why
    Stylesheets from your theme are served unminified.
  3. JavaScript optimized

    Low riskTunewise changes it for youJavaScript
    Why
    Scripts on your shop are served unminified; minification is reversible.
  4. JavaScript not aggregated

    Low riskTunewise changes it for youJavaScript
    Why
    Aggregating scripts changes their order and breaks checkout and slider scripts; HTTP/2 makes it unnecessary for your shop.
  5. JavaScript deferred

    Medium riskTunewise changes it for youJavaScript
    Why
    Render-blocking scripts delay the first paint of your pages on mobile.
  6. CSS deferred with critical CSS

    Medium riskTunewise shows you the stepsCSS
    Why
    Deferring CSS needs critical CSS for your theme first, or pages flash unstyled. Generate it, then turn this on.
  7. Not optimizing cart and checkout

    Medium riskTunewise changes it for youStore
    Why
    Checkout scripts on your shop are fragile; Autoptimize’s default is to leave cart and checkout untouched.
  8. Not optimizing for logged-in users

    Low riskTunewise changes it for youGeneral
    Why
    Some editors see the page builder and admin bar; optimizing those scripts gains nothing and can break editing.
  9. Emoji script removed

    Low riskTunewise changes it for youExtra
    Why
    WordPress loads an emoji script on all pages; modern browsers do not need it.
  10. Query strings removed from static files

    Low riskTunewise changes it for youExtra
    Why
    Some caches refuse to store files with ?ver= query strings; your shop serves them on every page.
  11. Google Fonts combined and loaded asynchronously

    Medium riskTunewise changes it for youExtra
    Why
    Fonts from your theme block rendering until downloaded; combining and preloading shows text sooner.
  12. Lazy loading in one place only

    Low riskTunewise changes it for youImages
    Why
    Smush already lazy-loads your images; running both delays them on mobile.
    Where to find it
    Look for "Lazy loading images" in the Autoptimize settings.
  13. Lazy loading images

    Low riskTunewise changes it for youImages
    Why
    Some images and no other lazy loader active; below-the-fold images should wait.
    Where to find it
    Look for "Lazy loading images" in the Autoptimize settings.

Leave these alone or take care

  • Deferring CSS. It needs critical CSS for your theme first, or pages flash without their styling. Generate that, then turn it on yourself.
  • Deferring JavaScript and combining Google Fonts are medium risk. Look at your pages on a phone after they change.
  • The cart and checkout. Checkout scripts are fragile, and the plugin's own default is to leave them untouched.

These checks carry more risk, or Tunewise does not change them by itself. For those it shows you the steps and you decide.

It depends on your shop

1 of 13 checks only applies to some shops. This is what each one depends on.

Tested on

Last checked
2026-10-15
Versions the recipe fits
3.1 to 3.9.x
After each change
Tunewise checks the home page, product page, cart and checkout, sitemap, PHP errors, robots.
Recipes file
Version 1.33.0, signed, checked before this page was built.

This recipe has no test record with a plugin version in the recipes file yet, so none is shown.

Questions and answers

What is the best setup for Autoptimize?

Optimize HTML, CSS and JavaScript, but do not aggregate JavaScript, and leave the cart, the checkout and logged in users alone. Remove the emoji script and query strings, and lazy load images in one place only.

What does Tunewise check in Autoptimize?

HTML optimized; CSS optimized; JavaScript optimized; JavaScript not aggregated; JavaScript deferred; CSS deferred with critical CSS; Not optimizing cart and checkout; Not optimizing for logged-in users; Emoji script removed; Query strings removed from static files; Google Fonts combined and loaded asynchronously; Lazy loading in one place only; and 1 more.

Can Tunewise change the Autoptimize settings for me?

Yes, for 12 of 13 checks. For 1 it shows you the steps and you make the change yourself. Every change is explained first, checked after, and can be undone.

Which Autoptimize settings need care?

JavaScript deferred (medium risk); CSS deferred with critical CSS (medium risk); Not optimizing cart and checkout (medium risk); Google Fonts combined and loaded asynchronously (medium risk).

Which Autoptimize settings should I leave alone?

Deferring CSS. It needs critical CSS for your theme first, or pages flash without their styling. Generate that, then turn it on yourself. Deferring JavaScript and combining Google Fonts are medium risk. Look at your pages on a phone after they change. The cart and checkout. Checkout scripts are fragile, and the plugin's own default is to leave them untouched.

Does the best setup for Autoptimize depend on my shop?

Yes, for 1 of 13 checks. For example, "Not optimizing cart and checkout" depends on the kind of site you run (a store).

Which version of Autoptimize was this tested on?

Last checked on 2026-10-15. The recipe fits versions 3.1 to 3.9.x.

Plugin names and icons belong to their owners. Tunewise is not affiliated with or endorsed by them. The icon comes from the plugin's own listing on WordPress.org.

Let Tunewise set up Autoptimize for your shop

The free plugin reads your shop and shows your plan before anything changes. Update Guard is on from the first minute.