Guide

How to speed up a WooCommerce store

Faster stores sell more. Here is how to speed up product and category pages without breaking the cart, checkout or account pages.

WooCommerce stores have more moving parts than ordinary sites: carts, sessions, stock levels and checkout. Done carefully, though, most of a store can be just as fast as a brochure site.

Cache what can be cached—and nothing else

Product, category and content pages are the same for every visitor until they add something to the cart, so they can be cached. The cart, checkout and My Account pages must never be cached, and visitors with items in their cart (the woocommerce_items_in_cart cookie) should always get fresh pages. Any good cache plugin handles these exclusions—check that yours does.

Tame cart fragments

WooCommerce’s cart fragments script asks the server for the mini-cart contents on page load. On shared hosting that is an extra uncached request on every page. If your theme doesn’t show a live mini-cart in the header, it can be disabled or delayed until the visitor interacts.

Optimize product images

  • Serve WebP or AVIF and let the browser pick the right size from srcset.
  • Lazy-load gallery and related-product images, but preload the main product image.
  • Keep the original uploads—convert copies rather than replacing files.

Cut plugin scripts

Payment buttons, reviews, wishlists and tracking pixels each add scripts to every page. Load them only where needed, and delay marketing pixels until interaction.

Keep the database lean

Expired transients, old sessions, post revisions and orphaned metadata slow down uncached requests like the cart and checkout. Clean them up regularly.

A shortcut

FastFront knows WooCommerce: shop and product pages are cached and optimized, while cart, checkout and account pages always stay live. It converts images locally, trims unused CSS and delays third-party scripts, and its database cleanup and lighter WooCommerce setting reduce the work on uncached pages. On a real store with Elementor Pro and JetEngine, mobile PageSpeed went from 59 to 96 (case study).

More speed guides

Not using FastFront yet?

See your own site’s score next to an optimized copy—free, in about a minute.