Ecommerce Website Speed Optimization: Product Pages, Cart, Checkout and Conversion Experience
Five page types, five different bottlenecks, five different priorities — and why checkout is a correctness-first zone, not a speed-first one.
In short
An online shop is not one performance problem. It is five, because a homepage, a category listing, a product page, a cart and a checkout have different jobs, different bottlenecks and different rules.
Optimising a shop as though it were a content site produces two predictable failures: effort spent on the homepage while the money is made on product pages, and a "faster" checkout that loses orders.
| Page type | What it is for | Usual bottleneck | What matters most |
|---|---|---|---|
| Home | Orientation and trust | Hero media, too many sections | LCP |
| Category | Finding things | Image volume, filtering scripts, DOM size | LCP, INP |
| Product | Deciding | Media weight, reviews and recommendation widgets | LCP, CLS |
| Cart | Confirming | Script-heavy updates | INP |
| Checkout | Paying | — | Correctness, then speed |
And the rule that overrides everything else: at cart and checkout, correctness beats speed. A checkout 200 ms faster that fails one order in a hundred is a catastrophe dressed as an improvement.
Why content-site advice misleads here
Three differences worth naming, because they invalidate a lot of general advice.
Most pages cannot be fully cached. Cart, account and checkout are per visitor by definition, and with per-customer pricing even product pages are. So caching is a per-page-type decision, not a site-wide switch.
Media is not decoration. On a content site an image illustrates. On a product page it is the product. You cannot compress your way to speed if the result makes the fabric look wrong — the savings have to come from dimensions, format and loading order.
Errors cost money immediately. A broken layout on a blog is embarrassing. A broken add-to-cart is lost revenue, and you may not notice for days.
Home page
The job is orientation and trust, and the constraint is that everyone wants something above the fold.
The hero is your LCP element. Eager, prioritised, correctly sized, never lazy-loaded.
Count your above-the-fold sections. A promotional bar, a cookie notice, a sticky header, a hero and a trust badge row all compete for the first paint. Three is usually plenty.
Carousels earn less than they cost. A six-slide hero often loads six images and a library, and most visitors never swipe. Measure the engagement before accepting the cost.
Reserve space for anything injected — announcement bars especially. A banner inserted at the top of the document after render pushes the entire page down, which is the worst layout-shift pattern there is.
Category and collection pages
Usually the heaviest template, and usually under-measured.
Image volume. Twenty-four products is twenty-four images. The first row should be eager; everything below lazy. Thumbnails must be requested at thumbnail size — a theme requesting full-size images for a grid is a common and large finding.
DOM size. Each product card is markup, and 200 cards with rich cards produces a very large document. Every style recalculation and layout pass then costs more, disproportionately on a phone. document.querySelectorAll('*').length in the console tells you quickly.
Filtering and sorting. Client-side filtering over a large catalogue runs on the main thread and makes interactions slow. Server-side filtering with a URL that can be cached is both faster and shareable.
Pagination versus infinite scroll. Infinite scroll keeps growing the document, so the page gets slower the longer someone browses — and it can fragment your cache if each scroll adds query parameters. Pagination keeps it bounded.
/* Let the browser skip rendering rows far below the fold */
.product-row { content-visibility: auto; contain-intrinsic-size: auto 420px; }
Product pages
Where the decision happens, and where the media is.
One image eager, the rest lazy. The first gallery image is your LCP element. Thumbnails small. This single change is usually the largest LCP win available.
Video: poster first, player on click. Never autoplay on mobile. Set preload to none so nothing is fetched until someone presses play.
Reserve space for widgets. Reviews, stock messages, delivery estimates and badges arrive late and push content down. Give each container a min-height matching its usual filled size.
Audit the widgets. Reviews, recommendations, size guides, wishlists, upsells, chat — each adds requests and main-thread time. They are also often the features that sell, so the decision is cost against value, not removal. Measure each one; see third-party scripts.
Variant switching is a responsiveness problem. If selecting a size takes half a second to update price and availability, that is INP, not loading. Update what the visitor needs to see first, then do the rest.
Cart
Small, dynamic, and more important than its traffic suggests — everyone here has decided to buy.
It cannot be page-cached. Make the queries behind it cheap instead, with object caching.
Quantity updates must feel instant. Update the displayed number immediately, then reconcile with the server. A cart that freezes for 400 ms on every quantity change feels broken.
Keep third-party scripts off it. There is little reason for a reviews widget or a recommendation engine to run here, and every reason to keep this page reliable.
Reserve space for totals, shipping estimates and promotions, all of which arrive asynchronously.
Checkout
The one page where performance is not the priority.
What not to do, regardless of what a tool says:
- Do not cache it.
- Do not defer or move scripts it depends on — payment, fraud checks, tax calculation, address validation.
- Do not remove a script because it looks heavy, without the owner confirming what it does.
- Do not run an aggressive optimisation plugin or script on it.
What is safe and worth doing:
- Remove fields you do not genuinely need. Fewer fields is both faster and better for conversion.
- Remove plugins and apps that add scripts to checkout and are not used there.
- Make sure object caching is working, so the queries are cheaper.
- Keep marketing scripts off checkout unless they are required.
Measure the funnel, not the homepage
Instrument the path to purchase, not page speed in isolation:
- Field Core Web Vitals per template, mobile and desktop separately.
- Interaction latency on add-to-cart, variant select, filter and quantity change.
- Drop-off per funnel step, segmented by device class.
- Conversion rate per device class — this is where mobile performance problems show up as money.
A good p75 can hide a badly broken p95, and your most frustrated customers are in the tail. See continuous monitoring for how to collect this.
Platform notes
Shopify. Infrastructure is handled; apps, theme and media are yours. See Shopify speed optimization and product page optimization.
WooCommerce. Caching by page type and cart fragments are the two defining issues — see WooCommerce performance.
Custom builds. Full control. The usual failure is client-side rendering of product content, which makes LCP wait for JavaScript.
Hosted builders. Your levers are media, above-the-fold weight and how many apps you add. See the platform permission matrix.
Common mistakes
Optimising the homepage while product and category pages carry the traffic.
Caching cart, checkout or account pages.
Compressing product images until they look worse. Presentation sells.
Lazy-loading the first product image.
Deferring a checkout script.
Client-side filtering over a large catalogue.
Infinite scroll without accounting for the growing document.
Treating a score as the goal instead of conversion and field metrics.
Not testing a real order after script or caching changes.
Removing a widget that was selling things, without measuring its contribution as well as its cost.
Verification
- Re-measure every template separately, same conditions, median of five runs.
- Confirm the LCP element per template on a phone viewport.
- Check interaction latency, not just load: add to cart, change variant, apply a filter, update quantity.
- Confirm cache exclusions for cart, checkout and account, and browse as two different logged-in customers.
- Complete a full purchase with every payment method.
- Check order confirmation emails and webhooks still fire.
- Watch conversion rate and funnel drop-off for several days — this is the real verification.
- Then watch field data per template for four weeks.
When it still does not improve
- Metrics improved and conversion did not → performance was not your constraint on conversion. That is a legitimate finding, and more useful reported plainly than explained away.
- Product pages fast, category pages slow → image volume and DOM size. Check thumbnail request sizes first.
- Fast for guests, slow for signed-in customers → they bypass the page cache, which is correct. Object caching is the answer.
- Cart feels slow despite a light page → responsiveness. Profile the interaction rather than the load.
- Conversion fell after optimisation → stop and check the purchase path immediately, on every payment method and device. Assume you broke something until you have proved otherwise.
- It regressed within months → a new app, a new tag, new images. That is monitoring and ownership, not another optimisation project.
Frequently asked questions
How is ecommerce performance different from a content site?
Three ways. Most pages cannot be fully cached because cart, account and checkout are per visitor. Media is the product rather than decoration, so you cannot compress your way to speed. And errors cost money immediately — a broken add-to-cart is lost revenue you may not notice for days.
Which page should I optimise first on my online store?
Product and category templates, not the homepage. That is where traffic lands and revenue is decided, and it is almost always where the real problems are. Measure each template separately, because they have different bottlenecks.
Why is my category page slower than my product page?
Image volume and DOM size. Twenty-four products is twenty-four images, and a grid of rich product cards produces a very large document that makes every layout pass more expensive. Check whether your theme requests thumbnails at thumbnail size — many request full-size images.
Should I use infinite scroll or pagination on a shop?
Pagination keeps the document bounded. Infinite scroll keeps growing it, so the page gets slower the longer someone browses, and it can fragment your cache if each load adds query parameters.
Is it safe to optimise my checkout?
Some of it. Fewer fields and removing unused plugin scripts are safe and help conversion. Caching it, deferring its scripts, or removing something payment, fraud checking or tax calculation depends on is not. Complete a real test order with every payment method after any change to scripts or caching anywhere on the site.
My Core Web Vitals improved but conversion did not. Why?
Performance was probably not your constraint on conversion. That is a legitimate finding and more useful reported plainly than explained away. Check first that you did not break anything in the purchase path, then look at the rest of the funnel.
References
- Commerce performance — web.dev
- Optimize Largest Contentful Paint — web.dev
- Optimize Interaction to Next Paint — web.dev