Back to Blog

Website Performance Optimization for Ecommerce: What to Fix First

October 23, 2026
Blog

Website performance optimization for ecommerce means making your product, collection, cart, and checkout pages load fast on the phones your shoppers actually use. On most stores, the biggest gains do not come from rewriting code. They come from four everyday fixes: lighter product images, fewer apps and plugins, tighter control of third-party scripts, and a leaner theme. Measure first, fix what the data points to, and confirm each change before moving on.

Why Do Ecommerce Sites Slow Down?

Ecommerce sites carry far more weight than a typical business website. Every product photo, review widget, tracking pixel, and app adds files the browser has to download and run before a shopper can browse or buy. Over time, small additions pile up.

The Four Usual Suspects

  • Product images: Full-size photos uploaded straight from a camera or supplier are the most common cause of heavy product and collection pages.
  • Apps and plugins: Many load their own scripts and styles on every page, even pages that do not use them.
  • Third-party scripts: Chat tools, tracking pixels, review widgets, and popups all compete for the browser’s attention.
  • Heavy themes: Feature-packed themes often ship code for sliders, popups, and recommendation blocks you never turned on.

Hosting is rarely the first thing to blame. In most cases, these four issues cause more slowdowns than the server does. If you are not sure which side the problem is on, our guide on how to improve site speed without changing hosting walks through how to tell the difference.

How Do You Measure Core Web Vitals on Ecommerce Pages?

Test four page types separately: a best-selling product page, a top collection page, the cart, and checkout. Test on mobile first. A fast homepage tells you little if your product pages or checkout drag.

Google PageSpeed Insights works for individual pages, and the Core Web Vitals report in Google Search Console shows which groups of pages need attention across the whole store.

What Do LCP, INP, and CLS Mean for a Store?

Core Web Vitals are Google’s three measures of real user experience (Google: Web Vitals). Each one points to a different kind of fix:

  • Largest Contentful Paint (LCP) measures how long the biggest element on screen takes to appear. On a product page, that is usually the main product photo. Google considers 2.5 seconds or less good. A slow LCP usually means an oversized main image or a slow server response.
  • Interaction to Next Paint (INP) measures how quickly the page responds when a shopper taps a variant, opens the cart, or clicks “Add to cart.” Google considers 200 milliseconds or less good. A slow INP usually means too much JavaScript, often from apps and tracking scripts.
  • Cumulative Layout Shift (CLS) measures how much the page jumps around while loading. Google considers 0.1 or less good. A high CLS usually comes from images without set dimensions, or from banners, review widgets, and chat bubbles that push content down after the page appears.

Lab Data vs. Field Data: Which Should You Trust?

PageSpeed Insights shows two kinds of results. Lab data is a simulated test under controlled conditions, which makes it useful for before-and-after comparisons. Field data comes from real visitors over the previous 28 days, on their own devices and connections (Google: About PageSpeed Insights).

When the two disagree, trust the field data. A green lab score does not mean shoppers on older phones and slower connections are getting a fast experience.

How Do You Run a Before-and-After Test You Can Trust?

  1. Record a baseline. Test your four page types on mobile and write down LCP, INP, and CLS for each, with the date.
  2. Change one thing. Compress the product images, remove one app, or defer one script. If you change three things at once, you will not know which one helped.
  3. Clear the cache and re-test. Otherwise, you may be measuring the old version of the page.
  4. Compare against the baseline. Same pages, same tool. If the number did not move, roll the change back rather than leaving dead weight in place.
  5. Confirm in field data. Field data reflects the past 28 days, so give it a few weeks before you call a fix a success.

Key takeaway: A speed fix you cannot measure is a fix you cannot trust. Baseline, change one thing, re-test, and confirm in field data.

How Do You Optimize Product and Collection Pages?

Product and collection pages are where most of a store’s page weight lives, so they are where image work pays off most.

Product Image Optimization

  • Resize before upload. A photo that displays at 800 pixels wide does not need to be 4,000 pixels wide.
  • Compress and use modern formats. WebP and AVIF files are typically much smaller than JPEG or PNG at the same visual quality.
  • Serve responsive sizes. Phones should receive smaller image files than desktop screens.
  • Set image dimensions. Defined width and height let the browser reserve space, which prevents layout shift.
  • Lazy load carefully. Lazy load gallery images and thumbnails below the fold, but never the main product photo. It is usually the LCP element, and lazy loading it delays the content shoppers see first.
  • Keep zoom images separate. Load high-resolution zoom versions only when a shopper actually opens the zoom.

Collection Page Fixes

Collection pages often load dozens of product thumbnails at once. Limit the number of products per page, lazy load thumbnails after the first visible row, and make sure thumbnails are served at thumbnail size, not full product-image size. Quick-view popups, color swatches, and filters add scripts too, so keep only the ones shoppers actually use.

Tip: Set an image size rule for everyone who uploads products, such as a maximum width and file size. It stops bloat at the source instead of fixing it later.

How Do Apps and Third-Party Scripts Affect Store Speed?

Every app or plugin that adds a review widget, chat box, popup, upsell block, or tracking pixel loads its own code. That code competes with your product page for the shopper’s browser, and it often loads on every page, not just the pages where it appears.

Run a script audit:

  1. List every installed app or plugin and every third-party script, and note what each one does.
  2. Remove anything you cannot justify with a clear business reason.
  3. For what stays, load it after the main content wherever possible, so it does not block the page from rendering.
  4. Check for leftovers. Uninstalling an app does not always remove the code it added to your theme.

Speed affects more than rankings. For how load time ties to leads and sales, see our guide on page load speed and conversion rates.

How Do You Speed Up Cart and Checkout?

Cart and checkout are where speed problems cost the most, because these shoppers are ready to pay.

  • Keep scripts off checkout. Load only what checkout needs. Popups, chat widgets, and marketing scripts rarely belong there.
  • Keep the cart lightweight. Slide-out carts with upsell carousels and multiple widgets can slow down the moment a shopper adds a product.
  • Cut unnecessary steps and fields. Fewer fields mean less to load, validate, and fill in.
  • Test after every change. Add a test purchase to your routine after installing anything that touches the cart or checkout.

On Shopify, the checkout itself is hosted and largely controlled by Shopify, so your levers are mainly the cart, the apps that connect to checkout, and the scripts you add. On WooCommerce, the checkout is part of your own site, which gives you more control and more responsibility.

Shopify vs. WooCommerce: Where Do the Speed Fixes Differ?

The core method is the same on both platforms. What differs is how much of the stack you control.

Area

Shopify

WooCommerce

Hosting and server

Managed by Shopify

Your host and your responsibility

Caching and CDN

Built in and managed by Shopify

You configure page caching and a CDN

Images

Shopify’s CDN can serve resized, modern-format images when the theme requests them properly

Handled by your image settings, tools, or CDN

Scripts

Theme code and installed apps

Theme, plugins, and any added scripts

Database

Not your concern

Needs regular cleanup

What Can You Control on Shopify?

  • Images: Upload reasonably sized files and make sure your theme uses responsive image sizes rather than loading the original upload everywhere.
  • Apps: Audit the app list regularly. Each app can add scripts across the whole store.
  • Theme code: Feature-heavy themes and leftover code from removed apps are common sources of extra weight. A theme review often finds scripts for features that are switched off in settings but still loading.

What Extra Levers Do WooCommerce Stores Have?

  • Page caching: This is usually the biggest lever. Without it, every visit rebuilds the page from the database. Cart, checkout, and account pages must be excluded from page caching so shoppers always see their own up-to-date cart.
  • Database cleanup: Post revisions, expired temporary data, and old session records build up over time and slow down queries. Never delete order data as part of a cleanup.
  • Plugin audit: The same discipline as a Shopify app audit, with an extra check for plugins that load the same script twice.

When Is Hosting the Real Constraint?

On WooCommerce, check the server before spending weeks on front-end fixes. If Time to First Byte (TTFB), the time it takes your server to start responding, is consistently slow across every page, including simple ones, the server is a likely bottleneck. Google considers a TTFB of 0.8 seconds or less good (Google: Optimize Time to First Byte). Slowdowns that appear only during traffic spikes can also point to resource limits on your hosting plan.

Key takeaway: Do not change hosting to fix a problem you have not diagnosed. Moving a store with oversized images and too many scripts to a new server usually produces the same slow pages on a more expensive plan.

How Do You Keep Ecommerce Performance From Sliding Back?

Store speed slips quietly. New apps, new product photos, seasonal banners, and campaign scripts all add weight. A simple routine keeps it in check:

Task

How Often

Re-test product, collection, cart, and checkout pages on mobile

Monthly, and after any theme update or app install

Check new product images against your size rule

Every upload

Review installed apps, plugins, and third-party scripts

Quarterly

Remove campaign scripts and banners after campaigns end

After each campaign

Clean the database (WooCommerce)

Twice a year

Want to know what is slowing your store down? Web Loft Designs has built and optimized ecommerce sites since 2003. Run our Shopify store audit to see what to fix first, or explore our ecommerce website design and development services.

Frequently Asked Questions

What should I fix first when my online store feels slow?

Measure first. Test your mobile product, collection, cart, and checkout pages and note the Core Web Vitals for each. For most stores, oversized product images and unused apps are the fastest wins. Start with your highest-traffic page, usually a best-selling product or top collection, and change one thing at a time so you can confirm what worked.

How can I optimize product images without hurting quality?

Resize images to the largest size they actually display, compress them, and use modern formats like WebP or AVIF. Serve smaller versions to phones, lazy load images below the fold, and load high-resolution zoom images only when a shopper opens the zoom. Done properly, shoppers will not notice a quality difference.

Do apps and third-party scripts really slow down my store?

Yes, and they are often the hardest slowdowns to spot. Every app that adds a review widget, chat box, popup, or tracking pixel loads its own code, often on every page. Audit your apps and scripts quarterly, remove anything you are not actively using, and check that uninstalled apps did not leave code behind in your theme.

Is Shopify or WooCommerce faster?

Neither is automatically faster. Shopify manages hosting, caching, and the CDN for you, so most speed work focuses on images, apps, and theme code. WooCommerce gives you control of the server, caching, and database, which means more ways to make a store fast and more ways to make it slow. The way a store is built and maintained matters more than the platform.

How often should I check my ecommerce site's speed?

Check monthly, and again after any theme update, app or plugin install, or campaign launch. Test on mobile first and compare results against your own previous numbers, so you catch slowdowns before shoppers do.

Back to Blog
Anastasia Marina Paul

Sign Up for Our Newsletter

Get the latest news and updates by signing up for our newsletter.

This field is for validation purposes and should be left unchanged.

Ready to bring your vision to life?
With 19 years of experience, we can help build your digital presence, boost brand awareness and bring success to your business.

Create a website that attracts customers, generates leads, and grows your business.

Ready to bring your vision to life?
With 19 years of experience, we can help build your digital presence, boost brand awareness and bring success to your business.