technical-seo

Shopify Speed Optimisation: Improve Store Performance

By
Shopify Speed Optimisation: Improve Store Performance

Shopify speed decides how many shoppers stay long enough to see your products. A slow product page loses visitors before the first image appears, and Google's Core Web Vitals measure exactly that delay. This guide covers Shopify speed optimisation from start to finish: how to test your store, what the numbers mean, and how to fix the most common causes, from heavy theme files and render-blocking CSS to oversized images and layout shift.

Every step uses the CrawlHunt Shopify app inside your Shopify admin, so you can test and improve Shopify speed without editing theme code by hand. Where a fix is better done manually, we say so.

Why Shopify speed matters and what Google measures

Google measures page experience with three Core Web Vitals. Each one covers a different part of how a page feels to a real visitor: how fast the main content appears, how quickly the page responds to a tap, and how much the layout jumps while it loads.

Metric

What it measures

Good

Common Shopify cause when it fails

Largest Contentful Paint (LCP)

When the largest image or text block finishes loading

2 seconds or less

Large hero or product images, render-blocking CSS

Interaction to Next Paint (INP)

How quickly the page responds to clicks and taps

200 milliseconds or less

Heavy app and theme JavaScript

Cumulative Layout Shift (CLS)

How much visible content moves while loading

0.1 or less

Images without width and height, late-loading app widgets

Google assesses these thresholds at the 75th percentile of real page loads, split by mobile and desktop, according to Google's Web Vitals guidance.

In its Search Central documentation on Core Web Vitals, Google recommends that site owners aim for good Core Web Vitals for success with Search. Shopify speed is one signal among many, so a faster store will not rank on speed alone, but a slow one makes every other SEO effort work harder.

If you want to track these numbers over time rather than check them once, our guide to Core Web Vitals monitoring explains how.

What hurts Shopify speed

Most Shopify speed problems come from a short list of causes:

  • App scripts. Every app that adds a widget, pop-up or tracker can load its own JavaScript on every page, even after you stop using it.
  • Render-blocking CSS and JavaScript. The browser waits for these files before it paints anything, which delays LCP.
  • Unminified theme files. Comments and whitespace in large CSS and JS files add bytes that every visitor downloads.
  • Oversized images. Product photos uploaded straight from a camera or design tool are often several megabytes each.
  • Images without dimensions. When an image has no width and height, the browser cannot reserve space for it, so the layout shifts when it loads.

Shopify's own theme performance best practices point to the same issues: never lazy-load the LCP image, and remove or defer app scripts that block HTML parsing.

How to improve Shopify speed with CrawlHunt, step by step

The steps below follow the order we recommend: measure first, fix the biggest problems, then measure again. Each fix writes to your live theme or product images, so read the notes on undoing changes before you start.

Step 1: Install the app and open Audit Results

Install the CrawlHunt SEO Shopify app from the Shopify App Store and run your first scan. Once the scan finishes, open Audit Results from the app menu in your Shopify admin. The PageSpeed Insights and Image Optimizer tabs, where the Shopify speed tools live, are both here.

For install and connection details, follow the setup steps in our docs for the Shopify app.

One thing to check first: if your storefront is still password protected, Shopify sends every visitor, including speed tests, to the password page. You would be measuring the wrong page. The app shows a "Your store is password protected" notice in that case. Our post on why a Shopify store not showing on Google explains how to remove the password.

Step 2: Run a Shopify speed test with PageSpeed Insights

Open the PageSpeed Insights tab and click Analyze Performance (or Re-run Analysis if a report already exists). CrawlHunt runs Google PageSpeed Insights for both mobile and desktop at the same time. A run can take up to two minutes.

CrawlHunt Shopify app PageSpeed Insights tab showing a failed Core Web Vitals assessment, LCP and CLS field data, and Performance, Accessibility, Best Practices and SEO scores

The report has two parts, and they answer different questions:

  • Discover what your real users are experiencing shows field data from real Chrome visitors, with a pass or fail Core Web Vitals assessment. It only appears when Google has enough visits to your store.
  • Diagnose performance issues shows lab scores for Performance, Accessibility, Best Practices and SEO from a single simulated test.

Use the Mobile and Desktop toggle to switch between them. Start with mobile: most Shopify traffic is on phones, and mobile scores are almost always lower.

Step 3: Read the lab metrics and opportunities

Scroll down to the Performance section. It breaks the score into First Contentful Paint, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift and Speed Index. Each metric has a colour bar: red needs work first, orange needs improvement and green is fine.

Shopify speed lab metrics in CrawlHunt with a performance score of 67, a 14.33 second Largest Contentful Paint and a 4.80 second Speed Index

In this example the mobile LCP is over 14 seconds, while the field LCP is about 2.3 seconds. That gap is normal: the lab test uses a slow simulated phone and network, so it shows the worst case. Use field data to judge real-world Shopify speed, and lab data to find what to fix. Our guide to Largest Contentful Paint goes deeper on that metric.

Below the scores, the Opportunities and Diagnostics sections list the specific problems Lighthouse found, such as "Reduce unused JavaScript", "Reduce unused CSS" or "Displays images with incorrect aspect ratio". Expand any item to see the files and elements involved.

PageSpeed Opportunities and Diagnostics in the CrawlHunt Shopify app listing unused JavaScript, unused CSS and images with incorrect aspect ratio

Step 4: Minify and defer theme files with Fix Core Web Vitals

Click Fix Core Web Vitals at the top of the PageSpeed Insights tab, then Fetch Published Theme Assets. CrawlHunt reads every JS, CSS and image file from your live, published theme and lists them with their status.

Fix Core Web Vitals asset table in the CrawlHunt Shopify app listing theme JS and CSS files with Minify Status, Defer Status, file size and Minify and Defer buttons

Each row has up to three actions:

  • Minify removes whitespace and comments from a JS or CSS file. Before it overwrites the file, the app saves a backup with .old before the extension, so base.css is backed up as base.old.css.
  • Defer stops non-critical files from blocking the first paint. JS files get the defer attribute, and CSS files switch to preload/onload loading. The app updates every theme template that references the file.
  • Compress appears for theme images (.jpg, .jpeg, .png, .webp). It also saves a .old backup and leaves the file unchanged if it cannot make it smaller.

Use the tabs above the table (JavaScript, CSS, Images) and the Minify Status filter to find the largest unminified files first. A large base.css or theme JavaScript file is usually a better place to start than many small ones.

The first time you apply a fix, the app asks for permission to make a live change to your store. That permission covers every fix for the next few hours, so you are not asked again on each click.

CrawlHunt dialog asking permission to make a live change to the Shopify store, with Not now and Yes, allow and apply buttons

Undoing changes: Revert restores a file from its .old backup and undoes Minify or Compress. Defer edits your theme's Liquid templates directly, so it cannot be undone from this page; you would need to edit the template by hand. Because every action here writes straight to your published theme, duplicate the theme in Online Store before you start if your store is business-critical.

Step 5: Load CSS without blocking with Async and Preload CSS

The Async and Preload CSS button next to Fix Core Web Vitals targets your theme's main stylesheet. It looks in theme.liquid for the standard stylesheet_tag line that loads theme.css, main.css, base.css or critical.css, and rewrites it as a preload link that switches to a stylesheet once it has loaded, with a <noscript> fallback for browsers without JavaScript.

This removes the main stylesheet from the render-blocking path, which often helps First Contentful Paint and LCP. If your theme uses a different file name, the app tells you it could not find a matching line and changes nothing. There is no one-click undo for this change, so keep a theme duplicate and check your store's pages after applying it. Some themes briefly show unstyled content when their main CSS loads late.

Step 6: Compress product images with Image Optimizer

Images are usually the biggest part of a Shopify page, so they are often the quickest Shopify speed win. Open the Image Optimizer tab, choose your settings and click Check images under Product images and Theme images. The check only counts images; nothing changes until you optimise.

Image Optimizer settings in the CrawlHunt Shopify app with Lossy and Lossless modes, maximum image size, minimum file size filter and product and theme image counts

The settings control how hard the app compresses:

  • Lossy gives the smallest files with a small loss in quality that is usually not visible. Lossless keeps every detail: PNG and WebP stay pixel-perfect, and JPG is re-saved at very high quality.
  • Maximum image size scales down product images larger than 2048, 3000 or 4096 pixels on the longest side. Theme images keep their dimensions.
  • Only optimize images skips small files (under 100, 200 or 500 KB) so your allowance goes to the heaviest ones.

Click Optimize N images to process every image that needs it, or open View all images to pick specific ones. Each image keeps its original format. In our test, a 2.0 MB product PNG came down to 457.2 KB, a 78% saving.

Shopify speed optimisation result in the CrawlHunt All images list, showing a product image optimised from 2.0 MB to 457.2 KB with a Revert button

The original of every product image is saved in your Shopify admin under Content, Files (named crawlhunt-original-…), and Revert restores it at any time. For more on choosing file sizes and formats, read our guide to Shopify image optimization.

Step 7: Stop layout shift with Scan Image Dimensions

Layout shift does not change load time, but it is part of Shopify speed as Google measures it. Images without a width and height are the most common cause of a poor CLS score on Shopify. In Audit Results, open Theme Actions and choose Scan Image Dimensions, then Start Scan. The scan checks every image in your published theme's Liquid files and lists each one that has no set size.

Image Dimension Scan Results in the CrawlHunt Shopify app showing before and after diffs that add width and height to img tags in a Liquid section file

Each finding is shown as a before-and-after diff, so you can see the exact line that will change. Untick anything you want to leave alone, then click Apply N Fixes. If something looks wrong afterwards, Undo Image Size Fixes restores the theme files from the backup taken when you applied them. A separate Scan Blog Image Dimensions action does the same for images inside your blog articles.

Step 8: Re-run the test and compare versions

After each round of Shopify speed fixes, go back to the PageSpeed Insights tab and click Re-run Analysis. Every run is saved as a version, and the version menu lets you open any earlier report to compare scores before and after a change. Fix buttons are disabled while you view an older version, so you always apply fixes against the latest data.

Lab scores move a little between runs even when nothing changes, so compare trends across two or three runs rather than a single number. Field data takes longer to change because Google collects it over 28 days of real visits.

What each Shopify speed fix changes, and how to undo it

Use this table to decide which fixes to try first and how much risk each one carries.

Fix

Where it is

What it changes

How to undo it

Minify

Fix Core Web Vitals

One JS or CSS file in the published theme

Revert (restores the .old backup)

Defer

Fix Core Web Vitals

Liquid templates that load the file

Edit the template by hand

Compress (theme image)

Fix Core Web Vitals

One image file in the theme

Revert (restores the .old backup)

Async and Preload CSS

PageSpeed Insights tab

The main stylesheet line in theme.liquid

Edit theme.liquid by hand or switch to a theme duplicate

Image Optimizer

Image Optimizer tab

Product and theme images

Revert (original kept in Content, Files)

Image dimensions

Theme Actions

img tags in Liquid files

Undo Image Size Fixes

Fixes that write to your store count toward your plan's allowance. See our pricing plans for what each plan includes.

Manual Shopify speed fixes to pair with the app

Some of the biggest Shopify speed wins need a decision from you rather than a tool:

  • Remove apps you no longer use. Uninstalling an app does not always remove the code it added to your theme. Check your theme files and app embeds after you uninstall.
  • Do not lazy-load the main image. The first product image or hero banner is usually the LCP element, so it should load straight away.
  • Limit sliders and autoplay video above the fold. They add heavy files to the part of the page that LCP measures.
  • Keep third-party fonts to a minimum. Each extra font family and weight is another file to download before text appears.

Speed is only one part of store health. Once your pages load quickly, our Shopify SEO optimization tips cover titles, content and structure.

A full technical SEO audit catches crawl and indexing problems that speed tests do not.

FAQ

What is a good Shopify speed score?

Lighthouse marks 90 to 100 as good, 50 to 89 as needs improvement and below 50 as poor. Most Shopify stores score lower on mobile than on desktop. Shopify itself requires an average Lighthouse performance score of at least 60 for themes in its Theme Store, so a mobile score in the 60s or 70s is common. Focus on passing the Core Web Vitals assessment in your field data rather than chasing 100 in the lab.

Why is my Shopify speed score different each time I test?

Lab tests run on simulated hardware over a real network, so server response time, app scripts and network conditions vary from run to run. Compare several runs over time instead of one result. Field data changes more slowly because it covers 28 days of real visits.

Is it safe to minify and defer Shopify theme files?

Minify is low risk and can be reverted from its .old backup. Defer changes your Liquid templates and cannot be undone from the app, and a deferred script that other code depends on can break a feature such as a cart drawer. Duplicate your theme first, apply one change at a time and test your key pages after each change.

Do Shopify apps slow down my store?

They can. Many apps add JavaScript and CSS to every page, and some leave code behind after they are uninstalled. The Opportunities and Third-Party Resources sections of the PageSpeed report show which scripts take the most time. Review your apps regularly and remove the ones you no longer need. If you are choosing between tools, our list of the best Shopify SEO apps compares the main options.

Will better Shopify speed help my store rank higher?

Core Web Vitals are part of how Google evaluates page experience, but relevance and content quality matter more. A faster store helps shoppers stay and buy, and it removes a weakness, but speed improvements alone will not move a page to the top of the results.

Start auditing your website with CrawlHunt

Automatically detect and fix SEO issues with AI-powered recommendations.

Get Started Free