Shopify gives you hosting, a CDN and a fast checkout. What you add on top decides the rest. The theme, the apps and the tracking pixels are where most speed is lost. This guide follows Shopify’s own performance best practices for theme developers. It also uses the HTTP Archive Web Almanac for context, and it says plainly where that data is limited.
Where Shopify speed is won or lost
You do not control Shopify servers. You do control what the page loads.
| Area | Typical cost |
|---|---|
| Theme code and Liquid | Slow rendering and large HTML |
| Images | Large files and late hero images |
| Apps | Extra scripts and styles on every page |
| Tracking pixels and tags | More scripts that block the main thread |
| Fonts | Delayed text and layout jumps |
The HTTP Archive Web Almanac 2025 looked at CMS platforms. It reported a Shopify mobile Lighthouse median of 52 and a median of about 1,615 KB of JavaScript on mobile.2
Step 1: measure first
- 1
Test the three page types
Test your home page, a collection page and a product page. They behave differently.
- 2
Use mobile results
Most shoppers are on phones, so start with the mobile report.
- 3
Note the main metrics
Record Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift.
- 4
Save a baseline
Write the numbers and the date. You need them to prove a change worked.
Step 2: fix the theme
Shopify lists clear rules for theme code.1 These are the ones that matter most.
| Fix | Why it matters |
|---|---|
| Defer non-critical scripts | Scripts that block parsing delay the page1 |
| Never lazy-load the main hero image | The LCP image should load early. Use fetchpriority=”high” on it1 |
| Use an img tag for the hero, not a CSS background | The browser can find and prioritise it sooner1 |
| Use srcset and sizes | Phones should download smaller files. Shopify image_tag and image_url filters help1 |
| Set width and height on images | The browser reserves space and avoids a jump1 |
| Self-host fonts and preload only one or two resources | Too many preloads compete with each other1 |
| Keep Liquid loops flat and avoid metafield access inside loops | Heavy loops slow server rendering1 |
1{{ section.settings.hero_image | image_url: width: 1600 | image_tag:2 widths: '400, 800, 1200, 1600',3 sizes: '100vw',4 loading: 'eager',5 fetchpriority: 'high' }}Step 3: audit apps and pixels
Each app can add scripts, styles and requests. Shopify tells developers to audit app scripts and tracking pixels.1
- 1
List every app
Write down what each one does and who uses it.
- 2
Find what each loads
Check the network panel for scripts and styles from each app.
- 3
Remove the unused
Uninstall apps nobody needs. Then check the theme for leftover code.
- 4
Replace what you can
A small theme feature can replace a heavy app for simple jobs.
- 5
Retest
Run the same pages again and compare with your baseline.
Shopify also says to avoid apps that game Lighthouse. A trick that raises the lab score but not real speed does not help shoppers.1
Step 4: stop layout shift
Layout shift happens when content moves after it appears. Late images, banners and app widgets cause it.
How I approach it
I start with removal, not addition. The fastest script is the one you never load.
I also check speed on real devices, not only in a lab tool.
Common mistakes
Lazy-loading the hero image.
Adding an app for every small idea.
Leaving pixels from old campaigns.
Testing only the home page.
Chasing a perfect score instead of real shopper speed.
Quick questions
Is Shopify slow by default?
Not by default. The platform is a starting point, and the theme and apps decide most of the load. The Web Almanac figures describe a wide range of stores, not a single default.2
Do I need a paid theme to be fast?
No. A lean theme with few apps can be fast, and a heavy theme can be slow. Check the theme with the same tests.
Should I use a speed-booster app?
Be careful. Shopify warns against apps that game Lighthouse.1 An app that adds more scripts to save time often defeats its own purpose.
What is a good Lighthouse score?
Treat the number as a guide. Shopify sets 60 as a minimum for Theme Store themes.1 Aim for fast real-world pages for your shoppers.
Key takeaways
The theme, apps and pixels cause most Shopify slowness.
Measure your own mobile pages for a baseline before you change anything.
Never lazy-load the hero image, defer non-critical scripts and size every image.
Audit apps and pixels, remove the unused and check for leftover code.
Reserve space for late content to stop layout shift.
