- 25+ Projects Delivered • 5 Years Experience • UK, USA & Pakistan Clients • Free SEO Audits - 25+ Projects Delivered • 5 Years Experience • UK, USA & Pakistan Clients • Free SEO Audits 

- 25+ Projects Delivered • 5 Years Experience • UK, USA & Pakistan Clients • Free SEO Audits - 25+ Projects Delivered • 5 Years Experience • UK, USA & Pakistan Clients • Free SEO Audits 

Back issues Writing

Making WordPress Fast Without Stacking Caching Plugins

I replayed one live WordPress home page and timed three fixes. Preloading the hero moved it from 8.2 to 6.6 seconds. Merging 34 stylesheets saved 0.2.

Topics

A message arrives with the plugin list attached: a page cache, a script optimiser, an image optimiser, a database cleaner, and a score from PageSpeed that has not moved. The owner has done what the reviews told him to do. The site still takes eight seconds to show a photograph.

I took that page apart. It is a real WordPress home page for a plumbing firm, it runs four plugins, and loaded the way a phone loads it, the largest thing on it appeared at 8.2 seconds. Three fixes moved that number by very different amounts, and the one that works is not on anybody’s plugin list.

Short answer

Measure the largest element, not the score. If the browser only finds it inside a stylesheet, preload it and the paint moves by a second or more. Reducing the number of plugins that ship their own CSS and JavaScript is the next lever. A page cache earns its money on the server side, and it cannot make a late image early.

What the number actually is

Largest contentful paint is the moment the biggest thing in the viewport is on screen. Google’s target is 2.5 seconds or less at the 75th percentile of page loads, measured in the field. A lab run throttles a browser and answers a different question from real visits, and the two disagree by design.

A lab run is still the right tool for comparing a page against itself. It also splits the number into four parts that add up to the total, and web.dev publishes the split: time to first byte around 40 percent, resource load delay under 10 percent, resource load duration around 40 percent, element render delay under 10 percent.

Two parts are network requests and two are the browser noticing things. A caching plugin works on the first part. Nothing on the market works on the other three, because they are about which file the browser asks for and when.

I used one script for every number here, blog-pipeline/tools/measure_wp.mjs, and the raw output is committed at blog-pipeline/data/. Each load is a fresh browser at 390 by 844 pixels with a Chrome 131 phone user agent, a 1.6 Mbps link, 150 ms of latency and a 4x CPU slowdown. Two loads per site, three per state on the replay.

The page I took apart

The page is tmwest.co.uk, a plumbing and heating firm in Leeds. As published it sends 2.4 MB across 127 requests. 1.3 MB of that is JavaScript, 55 percent of the page, from four plugins plus a tag manager. The head carries 34 stylesheet links and the page requests 9 font files.

For scale, the 2024 Web Almanac page weight chapter puts the median mobile home page at 2,311 KB, with 900 KB of images, 558 KB of JavaScript and 111 KB of fonts. This page carries 3.1 times as much script as image.

Then the part that matters. The largest element is not an image tag. It is a div with a background image, and that image is named only inside a stylesheet. The browser has to fetch and parse the CSS before it knows the photograph exists.

HTML, 32 KB34 stylesheetshero found in CSSpaint at 8.2 s
HTML, 32 KB34 stylesheetshero found in CSSpaint at 8.2 s
States in the trace of the as-published copy, 16 November 2026. Same viewport, throttle and CPU slowdown.

The HTML arrives first. The stylesheets queue behind it. The hero is discovered late, at the low priority a background image gets, and the largest paint lands at 8.2 seconds.

One line in the head

web.dev lists the cases where a browser can find the largest element by scanning the HTML it already has, and one of them is a CSS background image that is preloaded:

<link rel="preload" as="image" fetchpriority="high" href="/wp-content/uploads/2026/05/hero.webp">

Added to the copy above, before any stylesheet, that single tag took the largest paint from 8.0 seconds to 6.6. Against the page as published, 8.2 becomes 6.6: 1.5 seconds from one line of HTML, 1.4 of them from the preload alone.

In WordPress you print it from the theme or a small plugin you control, on pages that use the hero:

add_action( 'wp_head', function () {
    echo '<link rel="preload" as="image" fetchpriority="high" href="'
        . esc_url( home_url( '/wp-content/uploads/2026/05/hero.webp' ) ) . '">';
}, 1 );

Priority 1 so it lands above the stylesheets, which is the whole point. If the hero changes per page, build the tag per page. If the theme crops it per screen size, preload the variant phones actually get.

Merging 34 stylesheets saved 0.2 seconds

The obvious next move is fewer requests: one file, every plugin’s CSS merged in source order, nothing dropped. I did that too.

AS PUBLISHED8.2 sMERGED CSS8.0 sPLUS PRELOAD6.6 sSCRIPTS DELAYED9.0 s
AS PUBLISHED8.2 sMERGED CSS8.0 sPLUS PRELOAD6.6 sSCRIPTS DELAYED9.0 s
Largest contentful paint on four copies of one home page, three loads each, 16 November 2026. 390 by 844 pixels, 1.6 Mbps, 150 ms latency, 4x CPU slowdown.

The 34 links became 6 requests, the page went from 129 requests to 100, and the largest paint moved from 8.2 seconds to 8.0. That is the whole gain from a change that breaks on the next theme update.

Thirty small files download in parallel across six connections. One 970 KB file has to arrive in full before anything renders, so concatenation trades requests for a longer queue at the front, and on a slow link the queue wins.

The lever is removal, not merging. Every one of those stylesheets belongs to a plugin, a page builder or a theme feature, and a page carrying 34 of them is a page where somebody installed things without counting. Dequeuing two plugins’ CSS beats concatenating the rest.

Images: size, format, dimension

WordPress does more here than most people think. Anything wider or taller than 2,560 pixels is scaled on upload and the scaled copy becomes the largest size WordPress will serve, which is what the big_image_size_threshold filter controls. A 4,032 pixel phone photo is never delivered at 4,032 pixels.

What WordPress cannot decide is which of those sizes the page asks for. The srcset a theme prints is a list of offers, and the browser takes the cheapest that covers the box at the device pixel ratio. Give a hero 1,440 pixels at 2x and it will take the 2880 variant, and no plugin changes that.

Three things, in this order:

  • Check what the hero resolves to at 390 and at 1,440 pixels, then cap the largest size the theme can request.
  • Convert to WebP at upload. The image_editor_output_format filter maps an input type to an output type, and by default only HEIC maps to JPEG.
  • Put width and height on every image tag so the layout does not jump while the file arrives.

On the page I replayed, images were 447 KB of a 2.4 MB page and the hero was already a 150 KB WebP. The image work was done. The fix was a preload and not a re-encode, because the file was fine and the browser met it late.

Fonts and scripts: delete before you defer

The theme ships five icon-font families for a handful of glyphs, and the largest file in the set is 829 KB. The page requests 9 font files.

The scripts are the expensive half. 1.3 MB from plugins, most of it a slider, a cookie banner and a chat widget. WordPress 6.3 and later takes the loading strategy as an argument when a theme enqueues, so strategy => 'defer' is one line rather than a template hack, as the plugin handbook on enqueuing shows.

Then I tested the blunt version that the optimisation plugins sell, holding every script until after the load event. The largest paint went from 6.6 seconds to 9.0.

Delaying JavaScript is a real lever with a maintenance bill: every plugin that does it ships an exclusion list, because sliders, menus and enquiry forms stop working when their script arrives after the thing it animates. Someone has to keep that list correct, and it will be you.

Six WordPress home pages, two loads each

I measured six home pages to see whether the plumbing site was an outlier. The candidates were the first page of organic results for “plumber Leeds” and “accountants Leeds” on 16 November 2026. Sixteen links were checked, six were WordPress and answered a browser, and the rest were 403 to an unknown Chrome, refused DNS, or ran another platform. Both loads are in the paint column, lower first, because the second load could differ from the first by more than the fix I measured.

The last column applies one rule, in this order: more than 40 blocking stylesheets reads as a stylesheet count, then more than 1 MB of script reads as script weight, then more than 1 MB of images reads as image weight, then a first byte above 2 seconds reads as server time.

Home pageLargest paint, sFirst byte, sWeightStylesheetsReads as
tmwest.co.uk8.8 / 10.92.72.4 MB34script weight
fletchergill.co.uk8.2 / 14.42.2968 KB7first byte
avantias.co.uk10.6 / 14.75.33.2 MB19script weight
www.whitesidesca.com5.7 / 14.711.31.9 MB11script weight
leedsplumbingsolutions.co.uk14.0 / 25.14.21.2 MB20first byte
www.gjbplumbing.co.uk50.7 / 55.11.82.4 MB71stylesheet count

Nothing here painted inside 2.5 seconds. The worst stylesheet count is 71 on www.gjbplumbing.co.uk, the heaviest script is 1.6 MB on avantias.co.uk, and the heaviest images are 1.7 MB on www.gjbplumbing.co.uk. The quickest page is tmwest.co.uk at 8.8 / 10.9 seconds, which is quick against this sample and not against the line.

Six pages, six different dominant costs. A cache in front of any of them changes the same single thing.

When a cache is right, and the order I work in

It is right more often than my title suggests, just not first. WordPress’s own optimization guide points at caching as the biggest benefit for the smallest hassle, and that holds: a page cache changes time to first byte, which is around 40 percent of the largest paint on a cold visit, and an object cache cuts the database work a shop or a logged in user pays for.

The test is the first subpart. Load the page cold with the trace open. If first byte dominates the paint, a cache is the fix. If the bytes are dominated by files the page asks for after the HTML, a cache makes those files arrive slightly sooner and leaves the order alone. It hides the problem instead when it serves stale HTML to logged in users, or when the page renders a different hero per request.

  1. Trace one page on a throttled phone and write down the largest element, its file and its moment.
  2. Preload that element if the browser cannot see it in the HTML.
  3. Count stylesheets and scripts, then delete the plugins behind the ones nobody needs.
  4. Fix image sizes, then formats, then width and height.
  5. Defer what can wait, and keep a list of what cannot.
  6. Add a page cache and an object cache last, and re-measure the same page.

I did not count database queries or time the PHP, which is the half TTFB represents. All of this is the browser’s half, and on a small business site it is usually the larger one. It is also the half no plugin can take over, because the plugin does not know which photograph is the hero.

If the page is past repair rather than slow, the test I use for rebuild or improve runs the same measurement before it argues about money. The health score I ran on real sites is this method across a bigger sample, and why WordPress is still the right platform explains why I keep fixing these instead of replacing them.

Request

Got a site that should be doing more?

Send me the address and one sentence about what you sell. I will tell you what I would fix first, and whether it is worth fixing at all.

Start a project Free site audit