Shopify

Shopify Speed Optimization on Mobile: Fixing LCP, INP and CLS Template by Template

A template-by-template guide to Shopify speed optimization on mobile: the usual causes of slow LCP, INP and CLS on each page type, the fixes, and how to measure.

Shopify speed optimization on mobile fixing lcp inp and cls template by template
On this page
  1. How to measure before you fix anything
  2. The product page
  3. The collection page
  4. The home page
  5. The cart and cart drawer
  6. Search
  7. Site-wide fixes that help every template
  8. Images: a closer look
  9. Working with app vendors on speed
  10. Make the business case for speed work
  11. Set a performance budget
  12. Worked example: a fashion store’s product page
  13. How long speed optimization takes
  14. Common mistakes
  15. Frequently asked questions
  16. What we’d do first

Speed advice for Shopify usually comes as a list: compress images, remove apps, defer scripts, limit fonts. All true. But a list doesn’t tell you where your store is slow, and Shopify stores are rarely slow everywhere. The home page might be fine while the product page struggles on mobile. Collection pages might shift around as filters load. The cart drawer might take a second to respond to a tap.

This guide approaches Shopify speed optimization the way we work on real stores: template by template, on mobile, using real-user data. For each main template (home, collection, product, cart and search) it covers what usually causes slow Largest Contentful Paint (LCP), sluggish Interaction to Next Paint (INP) and layout shift (CLS), the fixes that work, and how to measure the result. It ends with a performance budget you can keep, so the store stays fast after the work is done.

Key takeaways – Measure on mobile, with real-user data, per template. A single home page score hides most problems. – Good thresholds are LCP at or under 2.5 seconds, INP at or under 200 milliseconds and CLS at or under 0.1. – The product page is usually the most valuable template to fix first, because most purchase decisions happen there. – Most slowness comes from images above the fold, third-party scripts (often from apps) and layout shifts from late-loading elements. – Set a performance budget and check it every month, or the store will slow down again as apps and campaigns are added.

How to measure before you fix anything

Start with real-user data, because that’s what customers experience and what Google measures.

  1. Search Console’s Core Web Vitals report shows which groups of URLs pass or fail on mobile, using data from real Chrome users.
  2. PageSpeed Insights shows field data for individual URLs (where there’s enough traffic) and a lab test that points to causes.
  3. Group by template: test a representative home page, two collection pages, three product pages (simple, with many variants, with video), the cart and search.

Record LCP, INP and CLS for each template on mobile. That table is your baseline and your priority list.

Lab tests and field data often disagree, and that’s normal. Lab tests run once, on a simulated mid-range phone and network, so they’re good for finding causes and comparing before and after a change. Field data reflects thousands of real visits on real devices, so it decides whether you pass. When the two point in different directions, trust field data for the verdict and lab tests for the diagnosis.

Metric What it measures Good
LCP How fast the main content appears 2.5 seconds or less
INP How quickly the page responds to taps and clicks 200 milliseconds or less
CLS How much the layout jumps while loading 0.1 or less

The product page

The product page is usually the highest-value template to fix, and often the slowest on mobile.

Common causes

  • Large main product image loaded at full size, or loaded lazily when it’s the main content
  • Many app scripts for reviews, upsells, bundles, size guides, wishlists, chat and tracking, all loading on every product page
  • Variant switching that re-renders large parts of the page with heavy JavaScript, hurting INP
  • Late-loading elements such as review stars, badges and delivery messages that push content down, causing CLS

Fixes

  • Serve the main image at the right size for mobile, in a modern format, and load it with high priority, not lazily.
  • Audit every app on the template. Remove unused ones, prefer apps built on theme app extensions, and load non-essential widgets after the main content.
  • Keep variant switching light: update only what changes (price, availability, image) instead of re-rendering the page.
  • Reserve space for elements that load late, such as review stars, badges and delivery messages, so nothing jumps.

The collection page

Common causes

  • Large product card images and second images on hover loaded for every card
  • Filters that load slowly or re-render the whole grid on each tap, hurting INP
  • Infinite scroll or “load more” inserting content above what the shopper is looking at
  • Promo banners that load late and push the grid down

Fixes

  • Size card images correctly and lazy-load everything below the first rows.
  • Load hover images only on devices that hover, not on phones.
  • Make filters update quickly and show a clear loading state; avoid heavy scripts on every tap.
  • Reserve space for banners and promo tiles.
Common speed problems and fixes on Shopify home, collection, product and cart templates
Each template has its own usual suspects.

The home page

Common causes

  • Hero sliders and videos with large files above the fold
  • Many sections each loading their own images and scripts
  • Pop-ups for newsletters or discounts that load immediately and shift content or block taps

Fixes

  • Replace auto-playing hero sliders with a single, well-optimised image or a short, compressed video with a poster image.
  • Limit sections above the fold and lazy-load the rest.
  • Delay pop-ups until the shopper has engaged, and make sure they don’t shift the layout.

The cart and cart drawer

Common causes

  • Slow cart drawer opening because scripts recalculate upsells, shipping bars and discounts on every change
  • Several apps adding upsells, gift options and messages to the cart

Fixes

  • Keep cart updates focused: update totals and line items quickly, load upsell recommendations after the cart opens.
  • Consolidate cart apps where possible, and test INP when adding, removing and changing quantities.

Common causes

  • Predictive search that fires too many requests as shoppers type
  • Search results pages with heavy cards and filters

Fixes

  • Debounce predictive search so it waits briefly between keystrokes.
  • Apply the same card and filter optimisations as collection pages.

Site-wide fixes that help every template

  • Remove leftover app code. Uninstalled apps often leave snippets or scripts in the theme.
  • Limit fonts: one or two families, few weights, loaded efficiently.
  • Audit tracking scripts: move pixels to Shopify’s customer events where possible and remove duplicates.
  • Update the theme: newer theme versions often include performance improvements.
  • Avoid render-blocking scripts in the theme’s head unless they’re essential.

Images: a closer look

Images are the biggest single cause of slow LCP on most Shopify stores, so they deserve a closer look.

  • Size for the screen. Shopify’s image service can deliver different sizes for different screens. Make sure the theme requests sensible sizes for mobile instead of desktop-sized images.
  • Prioritise the main image. The first product image or hero should load early with high priority. Lazy-loading it delays LCP.
  • Lazy-load the rest. Gallery thumbnails, below-the-fold sections and collection cards beyond the first rows can wait.
  • Compress at upload. Very large source files still cost time to process. Keep originals at a sensible resolution.
  • Use video carefully. A short, compressed clip with a poster image can work above the fold; a large autoplay video usually hurts LCP.

Working with app vendors on speed

When an app is essential but slow, talk to the vendor before removing it. Ask whether the app can load only on the templates where it’s used, whether it offers a lighter version or settings that reduce scripts, and whether it uses theme app extensions. Many vendors have improved performance in recent years, and a settings change can make a real difference. If the vendor can’t help and the app is costing speed on your most valuable pages, compare alternatives or consider whether a lighter custom feature would do the same job.

Make the business case for speed work

Speed work competes for budget with features and campaigns, so frame it in revenue terms. Start with the share of revenue that comes from mobile visitors on each template, then look at conversion rates by page speed in your analytics, or run a simple before-and-after comparison on a template you fix first. Even a modest conversion improvement on product pages, applied to all mobile traffic, often justifies a sprint of one to three weeks. Speed improvements also make every paid visit more valuable, which marketing teams appreciate.

Set a performance budget

Speed work fades unless something protects it. A performance budget sets limits that every change must respect.

Budget item Example limit
Mobile LCP on product pages (field data) 2.5 seconds or less
Mobile INP on product and collection pages 200 milliseconds or less
CLS on all templates 0.1 or less
Main product image weight Around 200 KB or less
Third-party scripts on product pages Each one approved, with an owner
New apps Speed tested before and after install

Review the budget monthly. If a new app or campaign breaks it, decide consciously whether the gain is worth the cost.

Example before-and-after mobile Core Web Vitals for a Shopify product page after template-level fixes
Illustrative example of product page metrics before and after a speed sprint.

Worked example: a fashion store’s product page

This is a hypothetical example. A fashion store’s mobile product pages fail Core Web Vitals: LCP around 4.1 seconds, INP around 380 milliseconds and CLS around 0.21.

  • LCP: the main image was a 900 KB file loaded lazily. Serving a correctly sized modern image with high priority brings LCP down substantially.
  • INP: variant switching re-rendered the whole product section, and three apps listened to every click. Updating only the changed elements and removing one unused app cuts response times.
  • CLS: review stars and a delivery message loaded late above the add-to-cart button. Reserving space for both fixes most of the shift.

After the changes, lab tests improve immediately, and field data catches up over the following weeks as real users visit the faster pages. The store then adds the product page to its monthly performance budget check.

How long speed optimization takes

A focused speed sprint on the main templates usually takes one to three weeks of development, depending on theme quality and the number of apps. Real-user field data takes up to 28 days to reflect changes fully, so judge results a month after release. Avoid releasing other big changes, such as a new app or a redesigned section, during that month, or you won’t be able to tell which change moved the numbers.

Common mistakes

  • Chasing a perfect lab score instead of passing field data
  • Fixing the home page first when product pages drive revenue
  • Removing an app’s widget but leaving its scripts in the theme
  • Lazy-loading the main product image
  • Doing a speed sprint once and never checking again

Frequently asked questions

How do I speed up my Shopify store on mobile?

Measure each template on mobile with real-user data, then fix the biggest causes: oversized or lazily loaded main images, too many app scripts, heavy variant and filter interactions, and elements that load late and shift the layout. Set a performance budget so the store stays fast.

What are good Core Web Vitals for a Shopify store?

Google’s good thresholds are Largest Contentful Paint of 2.5 seconds or less, Interaction to Next Paint of 200 milliseconds or less and Cumulative Layout Shift of 0.1 or less, measured on real users. Aim to pass all three on mobile for your main templates.

Do Shopify apps slow down my store?

They can. Many apps add scripts and styles to every page, and some leave code behind after uninstalling. Audit apps per template, remove unused ones, prefer apps built on theme app extensions and test speed before and after installing new apps.

Which Shopify page should I optimize first?

Usually the product page, because most purchase decisions happen there and it’s often the slowest on mobile. Then collection pages, the cart and the home page. Let your own field data and revenue by template guide the order.

How long until speed improvements show in Core Web Vitals?

Lab tests show changes immediately, but field data in Search Console and PageSpeed Insights is based on the last 28 days of real visits, so improvements can take up to a month to show fully.

What we’d do first

Open Search Console’s Core Web Vitals report and PageSpeed Insights, and build a simple table of LCP, INP and CLS for each template on mobile. Fix the product page first, then the template with the next biggest gap. Then write a performance budget and put a monthly check in the calendar. Shopify speed optimization that’s measured and protected lasts; one-off clean-ups rarely do.

Written by Sunny Goyal

Co-Founder & Business Development Director, Bytecode Technologies

Sunny helps brands plan and build Shopify stores, custom portals and AI solutions. He writes about what works on real client projects.

Connect on LinkedIn

Let's connect

Got a project in mind?

Tell us what you're building. We'll come back with the right stack, a realistic budget and a timeline from kick-off to launch. Free, and no obligation.

You have unsaved changes. Do you really want to close?