# How to speed up WordPress: the fixes that move Core Web Vitals

> Speed up WordPress step by step: measure first, then page caching, images, JavaScript, CSS and the database. What each fix improves (LCP, INP, CLS) and what can break.

Guide 5 min read · Updated 24 November 2026


Speed work goes wrong when it starts with the riskiest tweak. Measure first, then do the fixes that help every page with the least risk, and leave script delaying for last.

A fast WordPress site isn’t the result of one magic setting. It is a handful of fixes, each aimed at a different reason pages are slow. Doing them in the right order gets you most of the gain in an afternoon, without breaking menus, sliders or checkout.

## Measure before you change anything

Run your home page, a typical post and (if you sell) a product page through [PageSpeed Insights](https://pagespeed.web.dev/). Note three numbers from the field data, which comes from real Chrome users:

- **LCP (Largest Contentful Paint):** when the main image or heading appears. Good is under 2.5 s. Usually slowed by a slow server, a heavy hero image, or CSS and fonts that block rendering.
- **INP (Interaction to Next Paint):** how quickly the page reacts to a tap or click. Good is under 200 ms. Usually caused by too much JavaScript.
- **CLS (Cumulative Layout Shift):** how much the page jumps while loading. Good is under 0.1. Usually images without dimensions, late fonts or banners that push content down.

Write the numbers down. After each step below, test again, so you know what helped and can undo what didn’t.

## 1. Cache pages (helps LCP on every page)

Without caching, WordPress builds every page from scratch for every visitor: PHP runs, the database is queried, the theme assembles HTML. A page cache saves the finished HTML and hands it straight to the next visitor. It is the single biggest improvement for most sites, because it cuts server response time, which every other metric waits on.

What a good page cache gets right:

- **Never caches** logged-in users, carts, checkouts and account pages.
- **Clears the right pages** when you edit content, and warms the cache again afterwards.
- **Ignores tracking parameters** like `utm_source` and `gclid`, so ad traffic still gets cached pages.
- **Expires pages before WordPress security tokens do.** Forms and add-to-cart buttons carry tokens that expire after about 12 hours; a page cached for a day can serve broken forms.

[Page Cache](https://togglework.app/features/performance/page-cache/) does all of this, serving pages before WordPress loads. If your host already caches pages, use theirs instead and skip this step.

[![Page Cache settings screen in the Toggleworks WordPress plugin, showing Keep pages for, Separate cache for phones, Never cache these paths, Also skip visitors with these cookies](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-page-cache.webp?v=1795524356)](https://togglework.app/features/performance/page-cache/)

Page Cache: logged-in users, carts and checkouts are never cached.

## 2. Make images smaller (helps LCP)

Images are the heaviest thing on most pages, and the largest image is often the LCP element itself.

- **Use modern formats.** WebP is typically much smaller than JPEG at the same visual quality, and AVIF is smaller again. Every current browser supports WebP. [Image Optimizer](https://togglework.app/features/performance/image-optimizer/) saves new uploads as WebP or AVIF using your own server; [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/) converts the images you already have and keeps the originals.
- **Don’t upload 6000-pixel photos.** Downscale anything larger than about 2560 px on upload.
- **Compress to around quality 80.** Above that the file grows faster than the visible quality.

## 3. Load below-the-fold content later (helps LCP, saves data)

Lazy loading delays images and iframes until the visitor scrolls near them. Browsers support it natively, but two details make the difference:

- **Never lazy-load the first images.** The logo and hero image must load right away, or lazy loading makes LCP worse. Skip the first two or three images on the page, and mark the main one with `fetchpriority="high"`.
- **Replace video embeds with a preview.** A YouTube embed loads hundreds of kilobytes of script before anyone presses play. A click-to-play preview loads the player only when it is clicked.

[Lazy Load](https://togglework.app/features/performance/lazy-load/) handles both, across the whole page (theme, widgets and page builders, not only post content).

[![Lazy Load settings screen in the Toggleworks WordPress plugin, showing Lazy load images, Lazy load iframes, Never lazy load the first N images, Add fetchpriority="high" to the first large image](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-lazy-load.webp?v=1795524217)](https://togglework.app/features/performance/lazy-load/)

Lazy Load: the first images stay eager to protect LCP.

## 4. Remove what WordPress loads but you don’t use

Out of the box, WordPress adds an emoji script, embed scripts, jQuery Migrate for old themes, a dozen head tags and, on many themes, Dashicons for visitors. Each is small; together they add requests to every page. [Disable Bloat](https://togglework.app/features/performance/disable-bloat/) switches them off one by one with safe defaults.

The bigger win is usually plugin assets. A contact form plugin that loads its CSS and JavaScript on every page, when the form is only on /contact/, costs every visitor. [Asset Manager](https://togglework.app/features/performance/asset-manager/) shows each file a page loads and lets you switch it off on pages that don’t need it.

## 5. Stop CSS from blocking the first paint (helps LCP)

Browsers won’t draw anything until they have downloaded every stylesheet in the head. Critical CSS fixes this by inlining just the rules needed for the top of the page and loading the rest without blocking. It is the fix for PageSpeed’s “eliminate render-blocking resources” warning. [Critical CSS](https://togglework.app/features/performance/critical-css/) builds it per page type and rebuilds it when your theme or plugins change.

If the top of a page looks unstyled for a moment after you switch it on, include more of the page, or always include the rules for elements like a sticky header.

## 6. Defer JavaScript, then consider delaying it (helps INP and LCP)

This step has the biggest upside for INP and the most ways to break things, which is why it comes late.

- **Defer** tells the browser to download scripts without pausing, and run them after the page is parsed. It is safe for most sites. Keep jQuery excluded, because many themes print inline code that expects it.
- **Delay until interaction** holds scripts back until the first scroll, tap or key press. It gives the best scores, but sliders, menus and cookie banners that need to run straight away will break unless you exclude them. Always set a timeout so scripts load anyway after a few seconds.

After switching it on, click through your key pages: menus, sliders, forms, cart and checkout. [Defer & Delay JavaScript](https://togglework.app/features/performance/defer-scripts/) offers both modes with an exclusions list.

[![Defer & Delay JavaScript settings screen in the Toggleworks WordPress plugin, showing Mode, Never defer or delay jQuery, Exclusions, Delay timeout (seconds)](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-defer-scripts.webp?v=1795524211)](https://togglework.app/features/performance/defer-scripts/)

Defer & Delay JavaScript: start with Defer, keep jQuery excluded.

## 7. Help the browser get ahead

Resource hints let the browser start work early. Preconnect to the two or three third-party origins you can’t avoid (a font host, a payment provider). Preload your main web font. And prefetch the next page when a visitor hovers over a link, so the click feels instant. WordPress 6.8 and later already add conservative prefetching through Speculation Rules. [Preload & Resource Hints](https://togglework.app/features/performance/preload-hints/) adds the rest and lets you tune them.

## 8. Keep the database and admin light

These don’t change PageSpeed scores much, but they keep the server responsive, which helps everything else:

- **Clean the database** of old revisions, auto-drafts, spam and expired transients on a schedule ([Database Cleanup](https://togglework.app/features/performance/db-cleanup/)), and cap how many revisions WordPress keeps.
- **Slow the Heartbeat.** WordPress pings the server every 15–60 seconds from open admin tabs. Disabling it on the front end and slowing it in the dashboard cuts server load on busy sites ([Heartbeat Control](https://togglework.app/features/performance/heartbeat/)). The post editor needs it for autosave, so only slow it there.

## What not to do

- **Don’t run two caching plugins** , or a caching plugin on top of host caching. They fight over the same files.
- **Don’t chase a lab score of 100** by delaying everything. Real visitors get a page that doesn’t respond until they scroll.
- **Don’t optimise only the home page.** Most visitors arrive on posts and product pages from search.

Written by the Toggleworks team, who build and support a WordPress plugin used for exactly these jobs. We keep this guide plugin-neutral: every step works with any tool, or none.

## Doing this with Toggleworks

Every step above that needs a plugin is a part of Toggleworks. Each one is off until you switch it on, and all of them come in every plan.

- [Page Cache](https://togglework.app/features/performance/page-cache/) — TW-PRF-13 · Serves pages to visitors as ready-made HTML files before WordPress even starts — typically 5–20× faster. Logged-in users, carts… · 6 settings
- [Image Optimizer](https://togglework.app/features/performance/image-optimizer/) — TW-PRF-08 · Save uploaded JPEG and PNG images as WebP or AVIF, set the compression quality and downscale huge uploads. Uses your server's… · 5 settings
- [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/) — TW-PRF-18 · Convert your existing media library to WebP in the background and serve the smaller files automatically. Originals are kept, so… · 3 settings
- [Lazy Load](https://togglework.app/features/performance/lazy-load/) — TW-PRF-11 · Lazy load images and iframes across the whole page while keeping the first images eager for a fast LCP. Optional click-to-play… · 14 settings
- [Defer & Delay JavaScript](https://togglework.app/features/performance/defer-scripts/) — TW-PRF-05 · Stop scripts from blocking page rendering by deferring them, or delaying them until the visitor interacts. Test your key pages… · 6 settings
- [Critical CSS](https://togglework.app/features/performance/critical-css/) — TW-PRF-03 · Inlines only the CSS needed for the top of each page and loads the rest without blocking — fixing the “eliminate render-blocking… · 5 settings
- [Disable Bloat](https://togglework.app/features/performance/disable-bloat/) — TW-PRF-06 · Switch off WordPress extras most sites never use: emojis, embeds, jQuery Migrate, feed links, extra head tags and more. · 21 settings
- [Asset Manager](https://togglework.app/features/performance/asset-manager/) — TW-PRF-01 · See every CSS and JavaScript file a page loads and switch off the ones it does not need — on one page, everywhere, or everywhere… · Own screen in wp-admin
- [Preload & Resource Hints](https://togglework.app/features/performance/preload-hints/) — TW-PRF-15 · Preconnect to third-party origins, preload key files, and prefetch pages before visitors click them. · 13 settings
- [Database Cleanup](https://togglework.app/features/performance/db-cleanup/) — TW-PRF-04 · Remove old revisions, auto-drafts, trash, spam, orphaned meta and expired transients, by hand or on a weekly schedule. · 3 settings
- [Heartbeat Control](https://togglework.app/features/performance/heartbeat/) — TW-PRF-07 · Reduce admin-ajax load by disabling or slowing the WordPress Heartbeat on the front end, dashboard and post editor. · 6 settings

## Questions

**What is a good PageSpeed score for WordPress?**

Aim at the Core Web Vitals rather than the score itself: Largest Contentful Paint under 2.5 seconds, Interaction to Next Paint under 200 milliseconds and Cumulative Layout Shift under 0.1, measured on real visitors (the “field data” at the top of PageSpeed Insights). A lab score of 90+ on mobile is nice but is not what Google uses for ranking.

**Do I need a caching plugin if my host has caching?**

Usually not for page caching. Many managed WordPress hosts cache pages at the server, which is faster than any plugin can be. Use their cache, leave plugin page caching off, and still use the other fixes (images, scripts, CSS), which a server cache doesn’t do.

**Why did my site break after I deferred JavaScript?**

Usually an inline script in the theme calls a library (often jQuery) before the deferred file has loaded. Keep jQuery excluded, add the failing script to the exclusions, and use “defer” rather than “delay until interaction” until the site works.

**How many plugins slow WordPress down?**

The number matters less than what each one loads. One plugin that adds three scripts to every page costs more than ten that only run in wp-admin. Check what each page actually loads; our guide on [how many plugins is too many](https://togglework.app/guides/how-many-plugins-is-too-many/) goes into this.

## More guides

- The WordPress security checklist, in the order that matters5 min read
- The technical WordPress SEO checklist4 min read
- WordPress not sending email? Here’s the fix4 min read
- How to back up a WordPress site properly3 min read

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/guides/speed-up-wordpress/
