# Performance

> Site-wide frontend optimizations live at Aegis → Performance (admin.php?page=aegis-performance).

The page uses a sidebar with **WordPress** (core script cuts), **Core Blocks** (Query Loop gate, embed facades), and **WooCommerce** (storefront script cuts; brand mark icon, same sidebar color as the other items). When WooCommerce is not active, the section status badge shows **Inactive** or **Not Installed** and the toggles are disabled.

WordPress already lazy-loads images and applies LCP `fetchpriority`. Speculative Loading (prefetch/prerender of in-viewport links) is built in since 6.8. Aegis does not duplicate those.

## Where to Configure

![Aegis → Performance with sections for WordPress, Core Blocks, and WooCommerce, each listing performance toggles.](https://www.atmostfear-entertainment.com/wp-content/uploads/2026/11/performance.png)

*Aegis → Performance.*

| Location | Scope |
| --- | --- |
| **Aegis → Performance → WordPress** | WordPress core script cuts, head/API cleanup, and emoji scripts (Pro) |
| **Aegis → Performance → WordPress → Loading** | Speculative loading mode and eagerness |
| **Aegis → Performance → WordPress → Scheduling** | Whether page views start WP-Cron, and the scheduler status |
| **Aegis → Performance → WordPress → Housekeeping** | Revisions to keep, autosave interval, trash retention |
| **Aegis → Performance → Core Blocks** | Embed facades, Query Loop Pro gate |
| **Aegis → Performance → WooCommerce** | Cart fragments, non-store assets, password strength meter. Shown only while WooCommerce is active |
| **Aegis → Blocks → Slider → Lazy Loading** | Slider image lazy-load (Pro per-block Splide controls) |
| **Aegis → Connectors → BunnyCDN** | BunnyCDN credentials and stream features |

## WordPress

Enable at **Aegis → Performance → WordPress** (`#wordpress`):

| Toggle | Default | Effect |
| --- | --- | --- |
| Disable oEmbed Script | Off | Removes `wp-embed` and oEmbed discovery on the frontend |
| Disable Dashicons for Guests | Off | Stops dashicons CSS for logged-out visitors |
| Disable Frontend Heartbeat | Off | Dequeues Heartbeat scripts for guests on the frontend |
| Disable XML-RPC | Off | Sets `xmlrpc_enabled` to false and removes the `X-Pingback` header (site-wide, including `xmlrpc.php`) |
| Remove RSD Link | Off | Removes Really Simple Discovery from `wp_head` |
| Remove Shortlink | Off | Removes shortlink from `wp_head` and the `Link` response header |
| Remove Generator Tag | Off | Removes the WordPress generator meta tag and feed generator output |
| Remove REST API Links | Off | Removes REST discovery links from `wp_head`/headers (does **not** disable the REST API) |
| Remove Adjacent Posts Links | Off | Removes previous/next post `rel` links from `wp_head` |
| Remove Emoji Scripts | Off | Strips emoji detection scripts, styles, DNS prefetch, feeds, and TinyMCE emoji on frontend and admin |
| Disable Random Content Redirect | Off | Turns off the `/random/` address that WordPress 7.2 adds, which redirects visitors to a random published post. Also removes its field from the Permalinks screen. Uses the core filter `wp_enable_random_content_redirect` |

Script cuts (oEmbed, dashicons, heartbeat) and head cleanup apply on the public site only (not wp-admin, cron, or REST requests), except **Disable XML-RPC**, which is site-wide. Emoji removal also runs in the admin when the toggle is on. **Disable Random Content Redirect** is site-wide.

With Aegis Dash active, the theme defers frontend emoji removal to **Remove Emoji Scripts**. A standalone theme install keeps zero-base frontend emoji stripping.

## Core Blocks

Enable at **Aegis → Performance → Core Blocks** (`#core-blocks`):

| Toggle | Default | Effect |
| --- | --- | --- |
| Query Loop Performance | Off | Master switch for Pro Query Loop caching, lazy-load (preload + viewport threshold), skeleton loading (AJAX pagination), hover prefetch, and query optimizations (`no_found_rows`, meta hints). **Pro** |
| Embed Facades | Off | Click-to-load YouTube/Vimeo embeds (theme framework). Without the free plugin, the theme enables facades by default. |

Slider lazy-load stays under **Aegis → Blocks → Slider**. It uses Splide `data-src`, not native `loading="lazy"`.

Enabling **Query Loop Performance** alone does not turn on **Blocks → Query Loop** feature extras. The Pro query-builder editor script loads when either that parent or this Performance gate is on.

## WooCommerce

Enable at **Aegis → Performance → WooCommerce** (`#woocommerce`). Detection uses `WooCommerce::is_plugin_active()` (same idea as Connectors extras), not the **Aegis → Integrations → WooCommerce** toggle. The section badge uses Integrations Registry status (**Active** / **Inactive** / **Not Installed**). When WooCommerce is not active, toggles are disabled.

| Toggle | Default | Effect |
| --- | --- | --- |
| Disable Cart Fragments | Off | Dequeues `wc-cart-fragments` outside shop, product, cart, checkout, and account. Keep off if a classic header mini-cart must refresh on every page. Targets the classic script handle; block cart/mini-cart may not use it. |
| Disable Assets Elsewhere | Off | Dequeues WooCommerce scripts/styles on non-shop/product/cart/checkout/account pages |
| Limit Password Strength Meter | Off | Loads password strength scripts only on account and checkout form pages (not the order-received thank-you screen) |

### Store Data and Admin

These two groups sit under the toggles above. They are saved with the Loading, Scheduling, and Housekeeping settings in `aegis_core_tuning`.

| Setting | What it does |
| --- | --- |
| **High-Performance Order Storage** | Shows whether WooCommerce keeps orders in its own tables (faster saves and a faster Orders screen), with a link to switch it in WooCommerce. It is a status only: switch it after checking that your payment and shipping plugins support it |
| **Keep Finished Task Records (days)** | How long Action Scheduler keeps records of finished and cancelled tasks, from 1 to 3650 days. Empty keeps 30. A shorter number keeps a very large task table small |
| **Turn Off WooCommerce Admin** | Removes the WooCommerce Home, Analytics, and marketing screens and the scripts behind them. Orders, products, and settings keep working. Off by default |

The generator tag WooCommerce adds is removed by **Remove Generator Tag** under WordPress, so there is no separate switch for it.

## Loading, Scheduling, and Housekeeping

Three groups under **Aegis → Performance → WordPress** cover things WordPress has no screen for.

### Loading

WordPress already has **speculative loading**: the browser fetches the next page before a visitor clicks. It is on for visitors who are not logged in, on sites with pretty permalinks, and WordPress has no screen for it. These settings change how it works.

| Setting | Choices | Notes |
| --- | --- | --- |
| **Speculative Loading Mode** | WordPress default, Prefetch, Prerender, Off | Prefetch downloads the next page. Prerender also builds it in the background, so it opens instantly but costs more server and visitor bandwidth. **Off** turns speculative loading off |
| **Speculative Loading Eagerness** | WordPress default, Conservative, Moderate, Eager | Conservative starts when a link is pressed, moderate when the pointer hovers, eager as soon as a link is visible |

It never turns speculative loading on where WordPress keeps it off (logged-in visitors, plain permalinks).

### Scheduling

By default WordPress checks for scheduled work (publishing, backups, emails) whenever someone loads a page. That adds a request to visits and runs late on quiet sites. A scheduler on your server does the same work on time.

**Run WP-Cron on Page Loads** is **On (WordPress default)** until you change it. To switch to a server scheduler:

1. Add a scheduler to your server, running every 5 minutes. The screen shows two ready commands, one with `curl` against `wp-cron.php` and one with WP-CLI (`wp cron event run --due-now`).
2. Wait until **Server scheduler last seen** shows a recent time.
3. Choose **Off, use my server scheduler** and save.

As a safety net, Aegis keeps the page-load trigger on until it has seen your scheduler run within the last 30 minutes, so a missing or broken scheduler never leaves your site without WP-Cron. A request that WordPress makes to itself after a page view does not count as a scheduler.

**Scheduler Status** shows when the server scheduler was last seen, when the next task is due, and how many tasks are more than ten minutes overdue. A large overdue number with the page-load trigger off means the scheduler is not running.

If `DISABLE_WP_CRON` is set in `wp-config.php`, page views already do not start WP-Cron. The screen says so and the setting is locked; remove that line to manage it here.

### Housekeeping

WordPress sets these with constants in `wp-config.php` and has no screen for them. Leave a field empty to keep the WordPress default.

| Setting | Range | What it does |
| --- | --- | --- |
| **Post Revisions to Keep** | 0 to 1000 | The most revisions kept per post, page, and custom post type. **0** turns revisions off. Older revisions go the next time a post is saved. Empty keeps every revision |
| **Autosave Interval (seconds)** | 10 to 3600 | How often the block editor and the classic editor save a draft copy. Empty keeps 60 |
| **Empty the Trash After (days)** | 1 to 3650 | How long posts, pages, and comments stay in the trash before they are deleted for good. Empty keeps 30 |

The trash setting runs WordPress’s own daily purge with your number, because WordPress reads its constant before plugins load. A `WP_POST_REVISIONS` constant is overridden by a number set here.

These three groups are saved in the `aegis_core_tuning` option, separate from the toggles above. The global **Export** and **Import** include them as `core_tuning`, and **Tools → Reset defaults** on this screen clears them back to the WordPress defaults.

## Query Loop Performance (Pro)

The **Query Loop Performance** toggle unlocks the **Performance (Pro)** sidebar on `core/query` blocks. See [Query Performance Pro](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/).

When the toggle is off, Pro does not apply cache, lazy-load overrides, skeleton, or prefetch. WordPress still lazy-loads Query Loop images. The Performance panel also stays hidden unless the admin gate is on (editor feature flags default off when localization is missing).

## Export / Import / Reset

Performance keys are stored in the `aegis_blocks` option and included in the global export `blocks` group:

| Key | Section |
| --- | --- |
| `perf_disable_wp_embed` | WordPress |
| `perf_disable_dashicons` | WordPress |
| `perf_disable_frontend_heartbeat` | WordPress |
| `perf_disable_xmlrpc` | WordPress |
| `perf_remove_rsd_link` | WordPress |
| `perf_remove_shortlink` | WordPress |
| `perf_remove_generator` | WordPress |
| `perf_remove_rest_api_links` | WordPress |
| `perf_remove_adjacent_posts` | WordPress |
| `perf_remove_emoji` | WordPress |
| `perf_disable_random_redirect` | WordPress |
| `embed_facades` | Core Blocks |
| `query_loop_performance` | Core Blocks |
| `perf_woo_disable_cart_fragments` | WooCommerce |
| `perf_woo_disable_assets_elsewhere` | WooCommerce |
| `perf_woo_disable_password_strength` | WooCommerce |

`query_loop_performance` is forced off when Pro is inactive (reads, saves, imports, Blocks reset, and exports). The former `perf_reduce_heartbeat` key migrates to `perf_disable_frontend_heartbeat` once (`aegis_perf_heartbeat_key_v1`). Windows Live Writer / `wlwmanifest` is not offered — core removed that output in 6.3.

**Tools → Reset defaults** on this page turns only those keys off. Reset on **Aegis → Blocks** leaves Performance keys unchanged.

## Relationship to Theme Performance

The theme uses a zero-base loading strategy — see [Theme Performance](https://www.atmostfear-entertainment.com/docs/aegis/themes/theme/performance/) for conditional assets, fonts, and Core Web Vitals guidance.

## Next Steps

- [Theme Performance](https://www.atmostfear-entertainment.com/docs/aegis/themes/theme/performance/)
- [Query Performance (Pro)](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/)
- [Connectors](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/connectors/) — BunnyCDN Stream credentials and extras
- [Integrations Dashboard](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/integrations-dashboard/) — Third-party plugin toggles

---

Source: https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/performance/ · Updated 2026-11-22
