NextWoo
WoodMart problem page

WoodMart LCP optimization for product and category pages

For WooCommerce stores where the main image or heading takes too long to appear on mobile, even with a CDN and caching in place.

WoodMart loading performance gauge showing an improved LCP

WoodMart LCP optimization means getting one element, usually the hero or the first product image, on screen sooner. Largest Contentful Paint (LCP) measures when that main content actually appears, and on WoodMart it is often held back by things caching cannot fix: an oversized hero, a slider that boots before the image, or CSS and fonts that block rendering. Most of it can be fixed in place. Pre-rendering in Next.js is the cleaner path when it cannot.

01

What delays the LCP element in WoodMart

Four things usually delay it: a hero or slider that ships a huge, unoptimized image; the LCP image lazy-loaded when it shouldn't be; render-blocking theme CSS in the critical path; and a web font the heading waits on. On product pages the gallery is frequently the LCP element and often the heaviest file on the page.

02

Fixes that pull LCP earlier

LCP improves when the main image can start downloading immediately and nothing blocks it:

  • Serve the hero/gallery image as a properly sized AVIF/WebP with priority loading
  • Never lazy-load the LCP image; preload it instead
  • Inline critical CSS and defer the rest of the theme bundle
  • Preconnect to the image host and preload the display font
03

When one image and one script are the whole problem

If LCP is close to Google's 2.5 second mark and driven by one big image or one render-blocking script, fix those two things and stop. No rebuild is needed. PageSpeed Insights names the LCP element per URL, so checking one product, one category and the homepage tells you whether tuning gets you into the green.

04

Why pre-rendering beats patching

Patching cannot change the order a theme does things in: the browser loads a large shared bundle before the main content can settle. A Next.js storefront pre-renders the HTML on the server and sends the LCP image early, so the main content paints first by design, not after the theme finishes booting.

05

Two WoodMart patterns delay LCP more than any single image setting. On demo-based homepages and category pages, the hero is often a slider that boots in JavaScript and paints its first slide only after the script runs, so the largest element is late by design. On product pages, the main gallery image is wrapped in WoodMart's zoom and lightbox scripts, which can hold back the very image that counts as LCP. The fix that usually works best is to replace the slider hero with a static, server-rendered banner, and to let the gallery's first image load as a plain, prioritized image before zoom attaches.

06

Getting the priority signals right

The right image still loads late if the browser discovers it late or downloads the wrong size. Three signals decide that. Serve the LCP image as a real <img> with fetchpriority="high", never as a CSS background the browser finds late. Give it a responsive srcset sized to the slot, so a phone does not download a 2000px file for a 400px space. And preload it, so the request starts before the theme's CSS and scripts. Together these usually beat another caching pass, because they change when the image is discovered rather than how fast it travels.

  • Use a real <img> with fetchpriority="high" for the LCP element
  • Serve a responsive srcset sized to the actual rendered dimensions
  • Preload the LCP image so its request starts early
  • Avoid CSS-background heroes that the browser discovers late
07

Image formats and a responsive srcset plan

Once the LCP image is discovered early, the remaining gain is a smaller file. Serve AVIF with a WebP fallback, which cuts bytes substantially at the same visual quality. Add a sizes attribute to the srcset so a phone downloads an image sized to its slot instead of the desktop original. Never upscale a small source to fill a large space. Pick breakpoints from your real layout, not arbitrary widths.

  • Serve AVIF with a WebP fallback
  • Use srcset + sizes so phones get a slot-sized image
  • Never upscale a small source to a large display size
  • Choose breakpoints from your real layout
08

Rebuilding the above-the-fold

Product and category templates are rebuilt so the LCP element loads first, in the right format and with the right priority. Each template is tested on staging before the switch, and field LCP is watched per template after launch. WooCommerce keeps serving the product, price and image data through the API.

Frequently asked questions

Still have questions?

Reach out and we'll get back to you within 24 hours.

Contact us
Why is my LCP still bad after adding a CDN?

Because a CDN speeds up delivery but does not stop the image being oversized, lazy-loaded or blocked by CSS and fonts. Those are the usual WoodMart LCP causes.

Is the product gallery usually the LCP element?

Yes, on product pages it often is, so the format, size and load priority of that first gallery image matter most.

Can I fix WoodMart LCP without rebuilding the site?

Frequently, yes, if the cause is one image or a blocking script. When the in-place fix is enough, that is what we recommend.

Does pre-rendering in Next.js change my WooCommerce product data?

No. Next.js pre-renders the page; product, price and stock data still come from WooCommerce.

Related reading
  • WoodMart Core Web Vitals

    Pass Core Web Vitals on a WoodMart store: LCP under 2.5s, INP under 200ms, CLS under 0.1. Fix what the theme allows, rebuild the frontend when it can't.

  • WooCommerce image optimization

    WooCommerce image optimization beyond compression: responsive sizes, a prioritized LCP image, reserved space against CLS, and alt text kept in migration.

  • WooCommerce product page performance

    Faster WooCommerce product pages on Next.js: prioritized hero image, reserved gallery space, deferred swatch and review scripts, Product schema and URLs kept.

See how many sales your store is losing

Start with a free speed audit. You'll get your store's real numbers and an honest recommendation — even if it's "you don't need us".

Anything you already suspect — checkout feels slow on phones, the category pages crawl, you were told the theme is the problem. Guesses are useful; we check them.

No sales call — you'll get a written report with your store's numbers.

By requesting an audit you accept our Privacy policy and Terms of service. We may publish an anonymised summary of the findings as an example of our work. We never name your business without your written consent.