1. Home
  2. Blog
  3. WordPress
WordPress

WooCommerce LCP Under Two Seconds: The Fixes That Mattered Most

The order I use to get WooCommerce pages to LCP under two seconds: find the LCP element, split the time into four parts, then fix cache, image loading, size and paint.

Short answer

To get WooCommerce LCP under two seconds, find the LCP element on each page type, split the time into server wait, load delay, load duration and render delay, then fix the largest part. The usual causes are uncached catalog pages, a lazy-loaded main image, an oversized image and render-blocking scripts.

In this article
  1. Start with the right number
  2. Split LCP into four parts
  3. Fix 1: Time to first byte, the server side
  4. Fix 2: Make the LCP image easy to find
  5. Fix 3: Make the LCP image smaller
  6. Fix 4: Remove render delay
  7. Keep it under the line
  8. FAQ

Key points

  • A good LCP is 2.5 seconds or less at the 75th percentile, split by mobile and desktop. Two seconds is a tighter target I set for myself.
  • Split LCP into time to first byte, load delay, load duration and render delay, and fix the part that is far above its guideline.
  • Never lazy-load the LCP image, and consider fetchpriority high or a preload so it starts loading early.
  • Cache catalog pages, but keep the cart, my account and checkout pages out of the cache.
  • Set a speed budget and test the home, category and product pages after every plugin, theme or banner change.

A WooCommerce store is heavier than a blog. The shop page loads dozens of product images, the product page carries a gallery, a theme loads its scripts, and every plugin adds a little more. When people say a store feels slow, the number that usually matches what they feel is Largest Contentful Paint, or LCP: how long it takes for the biggest visible element to appear.

This post is the order I work in when I need a WooCommerce page to reach LCP under two seconds on mobile. Google’s own bar is 2.5 seconds, so two seconds is a tighter target that I choose for myself. I do not promise a result for your store, because every store has a different theme, host and set of plugins. I do promise a method that finds the real cause before you change anything.

Start with the right number

web.dev explains that a good LCP is 2.5 seconds or less, measured at the 75th percentile of page loads and split between mobile and desktop. Read the full definition on the Largest Contentful Paint page. The word to notice is percentile. Your fast laptop on office wifi is not the 75th percentile.

I use two kinds of data:

  • Field data comes from real visitors. It shows what customers experience and is what Google uses. In PageSpeed Insights it appears at the top when your site has enough traffic.
  • Lab data comes from a test run on one device and one connection. It is not what customers see, but it is repeatable, so it is the right tool for testing a change.

I check three page types separately: the home page, a category page and a product page. A store that is fine on the home page can still be slow on products, and the fix is different for each.

Mobile matters most, because phones have slower processors and less stable connections than the machine you build on. Test with a mobile profile first and check the desktop result second.

Then I find the LCP element itself. On most store pages it is one of these: the main product photo, a hero banner on the home page, a category header image, or a large block of text. You cannot fix LCP until you know which element it is. PageSpeed Insights and Chrome DevTools both name it.

Split LCP into four parts

The page on optimizing LCP breaks the time into four subparts. This is the most useful idea I know for speed work, because it tells you where the time goes.

Subpart What it measures Guideline share of LCP
Time to first byte Waiting for the server to start sending the page About 40%
Resource load delay The gap between the first byte and the start of loading the LCP image Under 10%
Resource load duration How long the LCP image takes to download About 40%
Element render delay The gap between the image arriving and it showing on screen Under 10%

web.dev calls these proportions guidelines, not strict rules. If your LCP is consistently under 2.5 seconds, the split does not matter. If it is not, find the part that is far above its guideline. That part is your work list.

Do not fix what looks slow. Fix the part of the load that the numbers say is slow.

Own-ur-Rehman Sheikh

Fix 1: Time to first byte, the server side

web.dev warns that a high time to first byte can make a 2.5 second LCP challenging or even impossible. On WooCommerce, a slow first byte usually means WordPress is building the page from the database on every visit.

My checks:

  1. Is there a full page cache for the pages that can be cached? Category pages, product pages and the home page are the same for most visitors.
  2. Are the right pages left out of the cache? WooCommerce’s documentation on configuring caching plugins says the cart, my account and checkout pages must stay dynamic because they show information for the current customer. Cache them and customers see each other’s data. Never trade that for speed.
  3. Is a CDN caching the HTML? Cloudflare’s default cache behavior page says its CDN does not cache HTML or JSON by default, only certain file types such as images, CSS and JavaScript. If you want the HTML cached at the edge, you need rules, and those rules must skip the cart, account and checkout paths and shopping cookies.
  4. Is the host fast? A cache hides a weak server for most requests, but the first request and the checkout still hit it.

I also look at the work WordPress does when the cache is cold: plugin count, slow database queries and remote calls that block the page. Removing a plugin that makes a remote request on every load can help more than any setting.

Extra URLs make this worse. Filter, sort and cart-add links can create thousands of uncached page variants that each cost the server work, and crawlers request them too. I cover how to find and cut them in how I find crawl waste on WooCommerce stores. Fewer wasted requests leave more server time for the pages that matter.

Fix 2: Make the LCP image easy to find

Resource load delay is the most common avoidable loss. It happens when the browser does not know about the LCP image until late. On WooCommerce I see these causes again and again:

  • The image is lazy-loaded. The web.dev guidance is blunt: never lazy-load your LCP image, because it always adds unnecessary load delay. Its article on browser-level image lazy loading explains that images immediately viewable without scrolling should load normally. Some themes and plugins add loading="lazy" to every image, including the first product photo.
  • The image is a CSS background. The browser finds it only after it has loaded and parsed the stylesheet.
  • The image appears through JavaScript. Sliders and galleries often insert the first image after scripts run.
  • The image has no priority hint. Browsers guess priorities. The Fetch Priority guide explains how the fetchpriority attribute lets you mark the important image as high priority.

The fix is usually small. Put the LCP image in the HTML as a normal image element, remove lazy loading from that one image, and add fetchpriority="high". If the image is only discovered late, web.dev shows how to preload it, with a high priority, so it starts at the same time as the stylesheet. Test after each change, because a preload for the wrong image makes things worse.

Fix 3: Make the LCP image smaller

Resource load duration is mostly about bytes. A product photo of 3000 pixels wide, sent to a phone that shows it at 400 pixels, wastes time on every visit. My checklist:

  • Serve images in a modern format such as WebP or AVIF when the browser supports it, with a fallback where needed.
  • Use responsive images, so a phone downloads a small file and a desktop a larger one. WordPress produces several sizes for each upload, and the theme must output them correctly.
  • Match the image size to the layout. If the product image is shown at 600 pixels, do not upload and serve a 2400 pixel file for the first view.
  • Compress with care and look at the result. Heavy compression makes product photos look cheap, and a store depends on how its products look.
  • Serve images from the same fast host or CDN, and avoid extra domains for the first image, because each new domain adds connection time.

I leave exact file size targets out on purpose. A good size depends on the design and the product, and the rule that matters is the page time, not the weight of one file.

Fix 4: Remove render delay

The last subpart is the time between the image arriving and it showing. When the image has loaded but nothing appears, something is blocking the paint. On WooCommerce, the usual suspects are:

  • Large CSS files from the theme and plugins that load on every page, even where they are not used.
  • JavaScript in the head that runs before the page can show anything.
  • Web fonts that hold back text until they load. web.dev has a guide on font best practices, including how to show text with a fallback font while the web font loads.
  • Sliders, popups and consent tools that hide the hero until their scripts finish.
  • Third-party scripts such as chat widgets, review widgets and tracking tags that load early.

I load each script only on the pages that need it. The cart script has no job on a blog post, and a review widget has no job on the home page. This is also why I stopped using page builders on client sites, because they load layout code for every page whether or not it is used. I wrote about that in why I stopped using page builders for client sites.

Keep it under the line

Speed work is easy to undo. A new plugin, a new banner or a larger hero image can add a second to LCP in an afternoon. So I set a budget and test against it. My budget is two seconds on mobile for the pages that bring in traffic. I run the three-page test after every plugin change, every theme update and every new campaign banner.

A quick map from symptom to fix

What you see Likely part First thing I try
Slow first byte, even for repeat visitors Time to first byte Page cache for catalog pages, host check, remove slow plugins
Image starts loading late in the waterfall Load delay Remove lazy loading from the LCP image, add fetchpriority high
Image takes long to download Load duration Right size, modern format, responsive images
Image is loaded but not painted Render delay Cut render-blocking CSS and JavaScript, fix font loading
Product page slow, home page fine Often load delay or duration Check the gallery script and the main image

I also look at what Google sees. The Core Web Vitals report in Search Console groups real-user data by page type, and it moves slowly, so I treat it as a check on the long run and the lab test as the daily tool. For a wider view of how these metrics fit into search, Rank Ray’s Core Web Vitals guide covers the full set.

The list is short: know the LCP element, split the time into four parts, fix the largest part, and test again. Most of the time the cause is one of a few things: an uncached page, a lazy-loaded hero, an oversized image or a script that blocks the paint. Work in that order and you will not waste a week tuning the wrong thing.

FAQ

What is a good LCP for a WooCommerce store?

Google's web.dev says 2.5 seconds or less at the 75th percentile of page loads, measured separately for mobile and desktop. Many store owners aim lower to leave room for change.

Should I lazy-load product images?

Yes for images far down the page, but never for the image that is the LCP element. web.dev says lazy-loading that image always adds unnecessary delay.

Can I cache the whole WooCommerce site?

No. WooCommerce documentation says the cart, my account and checkout pages must stay dynamic because they show customer-specific information. Cache catalog pages and exclude those paths.

Does Cloudflare cache my HTML pages by default?

No. Cloudflare's documentation says its CDN does not cache HTML or JSON by default. You need cache rules, and they must skip cart, account and checkout paths.

Why is my lab score good but real users are slow?

Lab tests use one device and one connection. Field data comes from real visitors on many devices, so check the field data and test on a mobile profile.

Sources

  1. web.dev: Largest Contentful Paint (LCP)
  2. web.dev: Optimize Largest Contentful Paint
  3. web.dev: Optimize resource loading with the Fetch Priority API
  4. web.dev: Browser-level image lazy loading for the web
  5. WooCommerce: Configuring caching plugins
  6. Cloudflare Docs: Default cache behavior

Your turn · Rank Ray

Want to be found on Google and in AI answers?