Shopify Speed Optimization: A Complete Guide to Faster Stores Without Sacrificing Functionality

What Shopify already optimizes for every store, what is still yours to fix, and what cannot be changed at all — so you stop paying for work already done.

In short

Shopify already does a large part of performance work for you, and no amount of effort on your side will improve those parts. What is left is almost entirely three things:

  1. Your apps — usually the single largest cost on a Shopify store.
  2. Your theme — how much it loads, and how expensive its Liquid is to render.
  3. Your media — image dimensions and video on product and collection pages.

So the first useful step is knowing which side of the line a problem sits on. Merchants routinely pay for "server optimisation", "caching setup" and "CDN configuration" on Shopify. None of those are available to you, and none of them are your problem.

What Shopify handles, and you cannot change

This list exists so you stop spending money on it:

Handled by ShopifyWhat this means for you
Global CDNYour assets are already served from near your visitors. You cannot choose or configure it.
Text compressionHTML, CSS and JavaScript are already compressed in transit. Nothing to enable.
Server and hostingYou cannot change the server, its resources, or its location.
HTTP response headersCache-Control and similar are set by Shopify. You cannot change caching policy.
Image serving and conversionShopify's image CDN resizes and converts images on request.
Checkout infrastructureNot editable on standard plans.
DatabaseNo access, and no queries of your own to optimise.

If a report or an agency recommends any of the above, the recommendation cannot be carried out. Our platform permission matrix lists this for every platform, which is useful when you are comparing quotes.

One consequence worth internalising: a slow server response on Shopify is not a hosting problem (the general diagnosis is in TTFB optimization). It is almost always expensive Liquid rendering — your theme asking Shopify's servers to do too much work. That is yours to fix, and it is covered in the theme performance guide.

What is actually yours

You controlWhere it bites
Which apps are installed, and on which templates they loadINP, total page weight
Your theme's JavaScript and CSSINP, render-blocking
Liquid rendering costServer response time
Image dimensions and which images you requestLCP
Video and product media handlingLCP, page weight
Number of sections above the foldLCP, DOM size
Resource hints in theme.liquidLCP
Custom scripts you or an agency addedEverything

Where to start

Step 1 — get your real numbers

Shopify's own Web Performance dashboard (Online Store → themes area) shows your Core Web Vitals from real visitors, which is what Google assesses. Use that to decide whether you have a problem, and PageSpeed Insights on a product page, a collection page and your homepage to find causes. They are different templates and will behave differently.

Test product and collection pages, not just the homepage. That is where your traffic lands and where the media and apps are.

Step 2 — find out which of the three it is

Record a page load in Chrome DevTools (Performance panel, CPU 4× slowdown, Slow 4G) and look at:

  • A long wait before anything arrives → Liquid rendering. Your theme is asking for too much work.
  • Long tasks from scripts you do not recognise → apps.
  • A large, late image → media.

Hovering a long task names the script that owns it. If the domain is not cdn.shopify.com and not your store, it belongs to an app.

Apps: the biggest lever

Each app can add network requests, JavaScript to parse and execute, and DOM elements. Several apps frequently ship the same library separately. Uninstalled apps often leave code behind in the theme.

The decision is never "fewer apps". It is "does this app earn what it costs, on this page". An app that drives real revenue is worth main-thread time; a review widget loading on your policy pages is not.

The full app audit method is here, including how to attribute a request to a specific app and how to measure one app's cost.

The quick version:

  1. List every third-party domain the page loads, in the Network panel.
  2. Attribute each to an app.
  3. Measure what each costs: requests, bytes, main-thread time.
  4. Remove apps you no longer use — and check the theme for leftover code.
  5. For apps you keep, stop them loading on templates that do not use them.

Theme: how much, and how expensive

Two separate problems that get conflated.

How much the theme loads. Theme JavaScript and CSS, fonts, and the number of sections on a page. A premium theme with every feature enabled ships code for features you are not using.

How expensive the theme is to render. Liquid runs on Shopify's servers before anything is sent. Loops over large collections, repeated metafield lookups and snippets rendered inside loops all add to your server response time — the one number you cannot fix by buying anything.

Three checks worth doing today:

  • Count sections above the fold. Each one is markup, often an image, sometimes a script. Three is usually plenty.
  • Check your scripts are deferred. A script without defer or async blocks the page from rendering.
  • Check whether your hero is in the HTML. Use View Source, not Inspect — Inspect shows the page after scripts have run. If your main image is not in the source, a script is inserting it, and the browser finds it late.
{%- comment -%} Blocking: the page cannot render until this is fetched and run {%- endcomment -%}
{{ 'theme.js' | asset_url | script_tag }}

{%- comment -%} Non-blocking, and what you almost always want instead {%- endcomment -%}
<script src="{{ 'theme.js' | asset_url }}" defer></script>

The theme and Liquid guide covers the rendering side properly, including profiling with the Theme Inspector.

Media: the usual LCP problem

On most stores the LCP element is a hero banner or the first product image. Three things go wrong:

Images requested at the wrong size. Shopify will resize for you, but only if you ask. Requesting the original means sending a 3000-pixel image to a phone.

The hero is lazy-loaded. Either by a blanket theme rule or by a section setting. This directly delays the metric Google measures.

Video autoplaying on mobile, or a product gallery loading every image up front.

{%- comment -%} A hero done properly: right sizes, eager, prioritised, no layout shift {%- endcomment -%}
{{ section.settings.hero
   | image_url: width: 1600
   | image_tag:
       loading: 'eager',
       fetchpriority: 'high',
       sizes: '100vw',
       widths: '600, 900, 1200, 1600',
       alt: section.settings.hero.alt }}

image_tag emits width and height for you, which prevents layout shift. Hand-written <img> tags that omit them are a common cause of a poor CLS score on Shopify.

Product media in detail — galleries, video, and doing this without making products look worse.

A realistic target

A Shopify store will not score like a hand-built static page, and judging yourself against one leads to wasted effort. You are running a commerce platform with a theme, apps and tracking.

What is achievable: passing Core Web Vitals on real visitor data. That is what Google assesses, and plenty of Shopify stores do it. A PageSpeed score in the 50s with passing field data is a better position than a score of 90 nobody has checked against real users.

Judge yourself against other stores of similar complexity, and against your own numbers last month.

Common mistakes

Paying for server, caching or CDN work. Not available on Shopify.

Uninstalling apps by count rather than by measured cost, and removing one the business depends on.

Changing theme without diagnosing. A new theme fixes theme problems. If your cost is apps and images, you will rebuild the store and measure the same numbers.

Installing a speed optimisation app to fix app overhead. Sometimes it helps. It is also one more script.

Treating the PageSpeed score as the goal instead of field Core Web Vitals.

Lazy-loading everything, including the hero.

Editing a live theme. Duplicate it, change the copy, compare, then publish. Performance changes break storefronts more often than any other kind.

Forgetting to re-test the whole purchase flow after changing script loading. Faster and broken is not faster.

Verification

  1. Compare against your own baseline — same pages, same tool, same throttling, same cache state, median of five runs. Write the baseline down before you start.
  2. Confirm the mechanism changed, not just the score: the app's requests gone from the Network panel, the hero requested earlier, the long task shorter.
  3. Check all three Core Web Vitals. Shopify changes frequently trade off against each other.
  4. Test on a real mid-range phone, not just emulation.
  5. Complete a real test order. Every time. If a script change broke a payment method, you need to find out, not your customers.
  6. Then watch Shopify's Web Performance dashboard over the following four weeks. Field data moves on a rolling 28-day window.

When it still does not improve

  • Server response is still slow → Liquid, not hosting. Profile with the Theme Inspector.
  • You removed apps and nothing changed → the removed apps were not the cost. Re-measure and attribute properly rather than removing more.
  • LCP will not move → confirm which element is actually your LCP element, on mobile. It is often not the one you assume.
  • The theme got faster but field data did not → your visitors are on slower devices than your test. Check mobile field data specifically.
  • A speed app improved the score but not the field data → it may be optimising for the test conditions rather than for visitors.
  • Everything is optimised and it is still not fast → there is a floor set by the platform, your theme's architecture and the apps your business needs. At that point the question becomes which apps you are willing to live without.

Keeping a Shopify store fast

Stores get slower by accident. A new app for a campaign that is never removed. A banner section added above the hero. Images uploaded straight from a photographer. A pixel added by whoever is running ads.

Four habits, all cheap:

  • Review apps quarterly. Remove what is unused, and check the theme for leftover code.
  • Set an image size limit that whoever uploads product photos knows about.
  • Measure before and after any app install, and keep the number.
  • Check Shopify's Web Performance dashboard monthly, so a regression is something you notice rather than something a customer tells you about. Continuous monitoring covers doing this properly, and ecommerce speed optimization covers the page-type thinking that applies to any store.

Frequently asked questions

How do I make my Shopify store faster?

Audit your apps first — on most stores they cost more than the theme and images combined. Then check your theme: deferred scripts, how many sections sit above the fold, and whether your hero image is in the initial HTML. Then your media: image dimensions and video handling. Server, CDN and caching work is not available on Shopify and is not your problem.

Can I improve my Shopify server response time?

Yes, but not by changing hosting — you cannot. A slow server response on Shopify is almost always expensive Liquid rendering: loops over large collections, snippets rendered many times, repeated metafield lookups. Profile it with the Shopify Theme Inspector and reduce the work your template asks for.

Do Shopify apps slow down my store?

They can, significantly, but the count matters far less than what each one does. One app loading a large script on every page costs more than ten that load nothing on most pages. Measure each app’s requests, bytes and main-thread time, then decide which earn it — and stop the rest loading on templates that do not use the feature.

What PageSpeed score should a Shopify store get?

A realistic target is passing Core Web Vitals on real visitor data, which is what Google actually assesses. A Shopify store will not score like a hand-built static page, and judging yourself against one wastes effort. A score in the 50s with passing field data is a better position than 90 with no field check.

Should I change my Shopify theme to make the store faster?

Only if you have diagnosed the theme as the cause. A new theme fixes theme problems. If your cost is apps and oversized images, you will rebuild the store and measure the same numbers — at considerable expense.

Do Shopify speed optimisation apps work?

Some help, mostly by deferring scripts and lazy-loading images. But a script that runs in the browser cannot change your server, your Liquid or how an app loads itself, and it is one more script on the page. Measure before and after on your own store rather than trusting the claim.

References