> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wpstratos.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimize Your WordPress Site with Aero's Speed Tools

> Use Aero to minify CSS and JS, defer scripts, convert images to WebP, enable lazy loading, and run database cleanup on your WP Stratos WordPress site.

![Aero V2 10 1 Optimization Screen](https://mintcdn.com/wp-stratos/o8RJpzdvfnrB5oI9/images/Aero-v2-10-1-optimization-screen.png?fit=max\&auto=format\&n=o8RJpzdvfnrB5oI9\&q=85\&s=6efe8ae69d1e8354899675c9b94ef97e)

The Optimization screen (**Aero → Optimization**) is where Aero rewrites your page output: minifying assets, changing how CSS and JS load, self-hosting fonts, and trimming what WordPress core loads on every request. This runs on every render that isn't already served from [Batcache or Edge Cache](https://docs.wpstratos.com/plugins/aero/caching.md), and it's also the screen most directly responsible for your PageSpeed Insights and Lighthouse scores, since nearly every setting here maps to a specific PSI audit.

To verify Aero is actually running on a given page, view source (`Ctrl+U` / `Cmd+Option+U`) and look for a comment near the end reading `Optimized by Aero vX.X.X`. For a full settings summary instead of a single page check, use the [Debug](https://docs.wpstratos.com/plugins/aero/debug.md) report.

## Core Optimizations

On by default, and there's rarely a reason to turn any of these off.

> [accordion] Minify & Cache CSS: Safe, recommended
>
> Minifies every stylesheet and serves it from Aero's local cache. Pure whitespace and comment removal, no behavior change to your site's appearance.

> [accordion] Minify & Cache JavaScript: Safe, recommended
>
> Same idea for scripts. Aero regenerates the minified copy automatically the moment a source file changes, so you never manage this by hand.

> [accordion] Compress HTML: Safe, recommended
>
> Strips whitespace and comments from the final rendered HTML. Shaves bytes off every single page load, purely mechanical, no visual effect.

> [accordion] Defer JavaScript: Safe, recommended, verify after enabling
>
> Defers non-critical JS so it doesn't block rendering. jQuery is excluded automatically since so much of the WordPress plugin ecosystem assumes it loads synchronously. If a specific script depends on load order in a way defer breaks, add it to [Exclusions](#exclusions) below rather than turning this off site-wide.

## Delivery Optimization

This is where PageSpeed scores are actually won or lost. These settings change *when* and *how* resources load, which is more impactful than pure minification but also where you're most likely to need to test after flipping a switch.

> [accordion] Preload the LCP Image: Safe
>
> Detects your page's likely Largest Contentful Paint image, preloads it with `fetchpriority="high"`, and removes lazy-loading from it specifically. This directly answers PageSpeed's "LCP image was lazily loaded" and "LCP image discovered late" warnings, two of the most common LCP-score killers on image-heavy pages.

> [accordion] Delay JavaScript Until Interaction: High impact, test after enabling
>
> No JavaScript runs until the visitor moves, scrolls, taps, or types, then everything restores in the original order. Because lab testing tools like Lighthouse never interact with a page, Total Blocking Time collapses, often by one to three full seconds. This is the single highest-leverage setting on this screen for a poor mobile PSI score, and also the one most likely to break something if a script needs to run immediately (a chat widget, an above-fold slider, anything triggering on `DOMContentLoaded`). Test your menus, sliders, and any interactive above-fold element after turning this on, and use **Exclude from Delay** below for anything that broke.

> [accordion] Load CSS Asynchronously: High impact, pair with Critical CSS
>
> Stylesheets stop blocking first paint, using a `media="print"` swap technique with a no-JS fallback. Without Critical CSS filled in below, the page can flash unstyled for a moment ("FOUC"). Add your header/hero rules to Critical CSS before or immediately after enabling this to avoid that.

### Delay and async fine-tuning

| Field | What it does | Guidance |
| - | - | - |
| **Delay Fallback Timeout** | Loads JS after a set time even without interaction (None / 5s / 10s) | "None" gives the best score, since it waits purely for real interaction. A timeout is worth setting if you rely on analytics counting passive visitors who never interact, at a modest score cost. |
| **Exclude from Delay** | One entry per line, matched against script URLs and inline code | Add anything that must run immediately: cookie banners, instant search, live chat triggers. Scripts can also opt out directly with a `data-aero-nodelay` attribute if you control the markup. |
| **Exclude from Async CSS** | One stylesheet per line | Excluded stylesheets stay render-blocking, which is correct for anything genuinely needed before first paint. Links can opt out with `data-aero-noasync`. |
| **Critical CSS** | Inlined into `<head>` when Async CSS is on | Paste your above-the-fold rules (header, hero, first-view typography) here, generated from any critical-CSS extraction tool or written by hand. This is what prevents the unstyled flash that async CSS can otherwise cause. |

## Font Optimization

Remote web fonts force two serial cross-origin round trips before any text renders at all, consistently one of the largest single PageSpeed penalties on typical WordPress sites. This section is Aero's answer.

> [accordion] Optimize Font Loading: Safe, recommended, master switch
>
> Enforces `font-display: swap` everywhere, so text is never blocked waiting on a font download. Text renders immediately in a fallback font and swaps once the real font arrives.

> [accordion] Self-Host Google Fonts: Safe, recommended
>
> Downloads Google Fonts into Aero's own cache and serves them from your domain, removing the external `fonts.googleapis.com` / `fonts.gstatic.com` round trips from your critical path entirely. Falls back to remote automatically if a download ever fails, so this degrades gracefully rather than breaking fonts outright.

> [accordion] Inline Font CSS: Safe, recommended
>
> Embeds the localized `@font-face` rules directly in `<head>` instead of linking a separate stylesheet, removing one more render-blocking request.

> [accordion] Preconnect Hints: Safe, recommended
>
> Warms connections to any font origin that's still remote (fonts.gstatic.com, Adobe Fonts/TypeKit), so the download starts 100 to 500ms sooner when it does happen. Only emitted for providers actually present on a given page, since a preconnect to an unused origin wastes a connection slot rather than helping.

> [accordion] Preload Primary Fonts: Safe, recommended
>
> Preloads up to two latin `woff2` faces so your primary text fonts download in parallel with CSS instead of waiting behind it.

> [accordion] Disable Google Fonts Entirely: Changes appearance, situational
>
> Strips every Google Fonts request outright, the browser falls back to system fonts. Only for sites deliberately using a system-font stack. This overrides every other font setting above, so leave it off unless that's specifically your intent.

> [!NOTE]
>
> Adobe Fonts (TypeKit) can't be self-hosted, since kit CSS is licensed and dynamically subset per account. Aero applies preconnect and preload to TypeKit instead of localizing it.

The screen also shows a live status row: how many stylesheets and files are localized, and what Aero detected on your last frontend visit (Google Fonts localized vs. remote, TypeKit detected or not). Check this after enabling font optimization to confirm it actually caught your theme's font requests.

## Exclusions

Compatibility escape hatches. If one specific file misbehaves when optimized, exclude that file here instead of disabling the feature for your entire site. Each field takes one entry per line, matched as a case-insensitive fragment of the file URL, so `slider-pro` matches any file with that string anywhere in its path.

| Field | Matches against |
| - | - |
| **Exclude from CSS Minification** | Stylesheet URLs |
| **Exclude from JS Minification** | Script URLs |
| **Exclude from JS Defer** | Script URLs (jQuery is always excluded automatically, you don't need to add it) |

## WordPress Bloat

WordPress core loads a surprising amount of markup and JavaScript on every page that most sites never use. This section trims it, and it's a section worth reading carefully rather than enabling wholesale, since a few of these genuinely depend on your setup.

> [accordion] Remove Emoji Script: Safe
>
> Drops roughly 15KB of emoji-detection JS/CSS loaded on every page. Emojis still render correctly, since every modern browser supports them natively without WordPress's polyfill.

> [accordion] Clean Up \<head>: Safe
>
> Removes the RSD link, Windows Live Writer manifest, shortlink tag, and the WordPress version meta tag. That last one is a minor security win too, since it stops broadcasting your exact core version to anyone looking.

> [accordion] Disable Embeds: Review before enabling
>
> Removes `wp-embed.js` and oEmbed discovery links. Keep this **off** if other sites embed your posts as rich cards (a common pattern for news and blog content); turn it on if you know that never happens for your content.

> [accordion] Remove jQuery Migrate: Review, test after enabling
>
> Frontend only. Safe on modern, actively maintained themes. Only plugins written for pre-2016 jQuery patterns actually need Migrate. Test your interactive elements after enabling; if something breaks, that plugin or theme is the reason, and you may need to leave this off until it's updated.

> [accordion] Remove Dashicons for Visitors: Decent impact, review before enabling
>
> Dequeues the \~46KB admin icon font for logged-out visitors. Keep this **off** if your theme displays Dashicons on the public-facing site (some themes do, for social icons or UI elements); it's safe if Dashicons only ever show up in wp-admin.

> [accordion] Disable XML-RPC: Recommended, review before enabling
>
> Blocks a common brute-force attack target and removes the X-Pingback header, a genuine security improvement for most sites. Keep this **off** if you use Jetpack or post to your site through the WordPress mobile apps, both of which rely on XML-RPC.

### Admin-side tuning

| Field | Options | Guidance |
| - | - | - |
| **Heartbeat API** | Default / Disable on frontend (recommended) / Disable everywhere | Frontend heartbeat polling is almost never needed by anything a typical visitor does. "Everywhere" also silences post-lock warnings in the editor, worth knowing before you pick it if your team relies on those. |
| **Autosave Interval** | 1 / 2 / 5 minutes | Fewer autosave requests means less admin-side server load. Mostly relevant on sites with heavy concurrent editing. |
| **Post Revisions Limit** | Number, empty = unlimited | Keeps the posts table lean over time. 5 to 10 is plenty for almost any editorial workflow; leave empty only if you specifically need a long edit history. |

## Custom CSS

A site-wide custom CSS field, injected on the frontend for all regular visitors. This is a plain styling tool, not an optimization setting, useful for quick fixes (hiding a broken element, patching a layout issue) without editing your theme directly.

> [!NOTE]
>
> Guest-Mode-only custom CSS is a separate field, covered on the [Experimental](https://docs.wpstratos.com/plugins/aero/experimental.md) page. Don't confuse the two: this field's CSS is seen by everyone, that one's is seen only by PageSpeed-style testing tools (Lighthouse, GTmetrix, Pingdom, and more).

## How this maps to real metrics

If you're chasing a specific Core Web Vitals number, here's the honest mapping:

* **LCP (Largest Contentful Paint)**: Preload the LCP Image, font self-hosting, and Async CSS + Critical CSS here, plus [WebP/AVIF conversion](https://docs.wpstratos.com/plugins/aero/images.md) to shrink the image payload itself.
* **INP / TBT (interactivity)**: Delay JavaScript Until Interaction is the single biggest lever, by a wide margin.
* **CLS (layout shift)**: mostly outside this screen's scope; it's usually an image-dimension or web-font-swap issue. Font-display: swap (on by default here) helps, but check your theme for missing width/height attributes on images too.

None of this replaces having genuinely useful content on the page. Speed is a floor, not a ceiling: Google's own [guidance on optimizing for AI search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) is explicit that a fast, technically clean site is table stakes, not a substitute for content that's actually worth someone's time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.