How to Speed Up Your Shopify Store: What to Fix, in Order
How to speed up your Shopify store: read Shopify's web performance report, know the Core Web Vitals targets, then fix apps, images, sections, fonts and scripts.
Most speed advice for Shopify starts with a list of 20 tips. This post starts with measuring, because you can’t tell which fix matters until you know which number is bad. Then it goes through the fixes in the order that usually gives the most back for the least risk.
You don’t need to be a developer for most of it. The last two sections need someone comfortable with theme code.
What “fast” means: the three Core Web Vitals
Google measures page experience with three Core Web Vitals. Shopify’s own reports use the same three.
| Metric | What it measures | Good | Poor |
|---|---|---|---|
| LCP (Largest Contentful Paint) | How long until the main content, often the hero image, appears | 2.5 seconds or less | Over 4 seconds |
| INP (Interaction to Next Paint) | How quickly the page responds when someone taps or clicks | 200 ms or less | Over 500 ms |
| CLS (Cumulative Layout Shift) | How much the page jumps around while loading | 0.1 or less | 0.25 or more |
The “poor” thresholds are from Shopify’s web performance reports. Anything between good and poor, Shopify calls moderate.
The target is measured at the 75th percentile. In plain terms, at least 75% of your page loads need a good score on all three for the page to count as good. Google recommends looking at mobile and desktop separately. On most Shopify stores, mobile is the one to worry about.
Step 1: Measure with Shopify’s web performance report
Shopify’s report uses real visits to your store, not a simulated test. Shopify says each score represents actual visitor experiences.
To find it:
- In your admin, go to Analytics > Reports.
- Search for “contentful”, “next” or “cumulative” to open the LCP, INP or CLS report. Search for “:” to see all of them (Shopify’s guide).
- A summary also shows on the Online Store > Themes page.
Three things to look at:
- Which metric is worst. That tells you which section below to start with.
- The page type report. It breaks each metric down by template: home, product, collection, cart. A slow product template affects every product.
- The over-time chart. Shopify marks app installs, theme updates and new code as numbered lines on the chart. If a metric got worse right after one of those lines, you’ve probably found your cause.
Two catches. The data can lag by up to 36 hours, so you won’t see the effect of a fix the same day. And if your store is new or in password mode, there won’t be enough real traffic for a report.
Step 2: Cross-check with PageSpeed Insights
PageSpeed Insights is Google’s free tool. Paste in a URL and it gives you two kinds of results:
- Field data, from real Chrome users over the previous 28 days. This is the “Core Web Vitals assessment” at the top. It only appears if your page or site has enough traffic.
- Lab data, from a simulated load on one device and network. This produces the 0 to 100 performance score. 90 or above is good, 50 to 89 needs improvement, and under 50 is poor.
Don’t chase the lab score alone. It’s useful for testing a change, because you can run it again in a minute. But your customers’ experience is the field data. Shopify notes its own numbers can differ from PageSpeed Insights, because PageSpeed uses only opted-in Chrome users while Shopify’s reports draw on more browsers.
How to test properly:
- Test your home page, your best-selling product page and your biggest collection page. These carry most of your traffic.
- Use the mobile result.
- Run each test three times and take the middle score. Lab scores move around.
- Write the numbers down before you change anything.
- Under the score, open Diagnostics. It lists the specific scripts, images and files causing the most delay.
For reference, Shopify asks themes in its Theme Store to have an average Lighthouse performance score of at least 60 across home, product and collection pages. That’s on a test store with no apps. Your live store with ten apps will score lower, and that’s normal.
Step 3: Remove apps you don’t use, and the code they left behind
Apps are the first place to look. Shopify’s own advice is that too many apps loading assets on your storefront can slow performance.
Do this:
- Open Apps in your admin and list every app.
- For each one, ask: does it show something on the storefront? Did it make or save us money in the last 90 days?
- Uninstall any storefront app you can’t justify.
- Check for leftover code. Shopify warns that uninstalling an app doesn’t automatically remove its code from your theme.
Finding leftover code: Before you edit anything, duplicate your theme from Online Store > Themes, so you have a copy to go back to. Then:
- In the theme editor, look under App embeds and turn off embeds for apps you’ve removed.
- In the code editor, search
theme.liquidand the snippets folder for the old app’s name. Old apps often left a{% render 'app-name' %}line or a<script>tag. - If you’re not sure what a piece of code does, ask the app developer. Shopify suggests contacting them for full removal instructions.
Common leftovers: review widgets, currency converters, pop-ups, upsell tools and chat widgets from apps you tried once.
Step 4: Fix your images
Images are usually the biggest files on a page, and the hero image is often the LCP element. If LCP is your worst metric, start here.
Quick fixes anyone can do:
- Upload images at the size they’re shown. Shopify advises resizing images to match their display size. A 6000-pixel photo straight from a camera is far bigger than any screen needs.
- Use JPG for photos and PNG only for graphics with transparency. Shopify compresses JPGs and often serves them as WebP automatically.
- Show fewer images. A homepage with three slideshows, a gallery and an Instagram feed will be slow however well each image is compressed.
Fixes for whoever edits your theme:
- Use Shopify’s
image_urlandimage_tagfilters. They generate asrcsetand addwidthandheightfor you, which also helps CLS (Shopify’s theme guide). - Lazy-load images below the fold with
loading="lazy". Never lazy-load the first big image on the page. Shopify says to load images in the first view eagerly, especially the LCP image.
Step 5: Cut sections, slideshows and animations
Every section on a template adds HTML, CSS and often JavaScript. Shopify says to avoid adding too many sections to page templates.
Do this on your home page and product template:
- Open the theme editor and list every section, top to bottom.
- Hide any section that doesn’t help someone decide to buy. Hidden sections are easy to bring back.
- Replace an autoplay slideshow with one strong image. A slideshow can load several large images when the visitor only sees one.
- Turn off theme animations and compare. Shopify says animations can slow down pages, and suggests testing with them on and off.
- For large collections, use pagination rather than loading every product at once.
If your theme is several years old, it may be the problem. Shopify notes that its Horizon themes and Online Store 2.0 themes are free and optimized for performance. Switching themes is a bigger job, so do the other steps first.
Step 6: Fonts
Custom fonts are extra files the browser has to fetch before your text looks right, and a late swap from a fallback font can make the page jump. Shopify’s theme guide suggests size-adjust to reduce that shift.
- Use fewer fonts and weights. One family with regular and bold is often enough. Each extra weight is another file.
- Use system fonts or Shopify’s font library rather than loading fonts from an outside service. Shopify’s theme guide suggests self-hosting fonts on the Shopify CDN or using system fonts.
- Preload only one or two files. Shopify recommends limiting preloads to one or two resources the browser discovers late. Preloading every font slows everything else down.
Step 7: Third-party scripts and tag managers
If INP is your worst metric, this is where to look. Shopify says the likely cause of poor INP is too much JavaScript from the theme, apps or a tag manager.
Do this:
- Audit your tag manager. Shopify says to remove unused or low-value tags. Old ad pixels, heatmap tools you stopped checking and duplicate analytics tags are common.
- Check for duplicate tracking. The same Meta or Google tag installed by both an app and hand-written code loads twice.
- Load scripts later. Your developer can add
deferto scripts that don’t need to run first. Shopify’s guide says to usedeferfor non-critical scripts andasynconly for independent ones. - Move non-essential widgets down. Reviews, chat and social feeds can load after the top of the page.
PageSpeed Insights’ diagnostics will list the scripts taking the most time. Start with the biggest.
The order, in one table
| Order | Fix | Helps most with | Who can do it | Risk |
|---|---|---|---|---|
| 1 | Remove unused apps | All three | You | Low |
| 2 | Remove leftover app code | LCP, INP | Developer, or you with care | Medium |
| 3 | Resize and cut images | LCP | You | Low |
| 4 | Lazy-load below-fold images | LCP | Developer | Low |
| 5 | Hide sections, remove slideshows | LCP, INP | You | Low |
| 6 | Turn off animations | INP, CLS | You | Low |
| 7 | Fewer fonts, fewer preloads | LCP, CLS | Developer | Low |
| 8 | Audit tag manager and scripts | INP | Developer | Medium |
| 9 | Change theme | All three | Developer | High |
After each change
- Make one change at a time.
- Re-run PageSpeed Insights on the same three pages and compare with your notes.
- Wait a few days, then check Shopify’s report. Real-user data is the real test.
- Keep the duplicated theme until you’re sure nothing broke.
If you’d rather not do this yourself, Newton can do it for you. Ask and you’ll see a quote in hours before anything starts, and approve the result before it goes live.