All articles
Technical SEO · · 7 min read

Shopify Core Web Vitals: How to Fix LCP, INP and CLS

How to read your Core Web Vitals on Shopify, and how to improve Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift without touching servers.

A stopwatch sitting next to a laptop and shipping box on a desk.
On this page

Shopify Core Web Vitals are three measurements Google uses to describe how fast and stable a page feels to real visitors: Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS). Shopify manages hosting and servers, so improving them means working on the parts you control: third-party app scripts, theme code and the size and setup of your images.

Advice written for other platforms often says to upgrade hosting or add a CDN. On Shopify those are handled for you, so skip them and focus on the theme, apps and media.

What counts as good?

Google's thresholds, assessed at the 75th percentile of visits for each metric and for mobile and desktop separately:

  • LCP: 2.5 seconds or less. How quickly the largest image or block of text appears.
  • INP: 200 milliseconds or less. How quickly the page responds when someone taps or clicks.
  • CLS: 0.1 or less. How much the layout shifts while loading.

Failing does not remove you from search, but passing is a measurable foundation for a good experience.

Field data versus lab data

This is the part many guides skip. Field data comes from real visitors and is what Google uses to assess your pages. You will find it in the Core Web Vitals report in Search Console and in the field section at the top of PageSpeed Insights. Lab data is a single simulated test, useful for finding causes but not for judging whether you pass. A good lab score with failing field data means real visitors, often on slower phones, have a worse experience than your test shows.

Start with the field data. If it is missing, your store may not have enough traffic for Google to report it, so use the lab test on a product page and a collection page as a guide and watch for a field result as traffic grows.

How do I fix LCP on Shopify?

LCP is usually the hero image on the homepage, the main product image on a product page, or the first image on a collection page.

  • Do not lazy load the LCP image. Lazy loading is right for images below the fold. On the main product image it makes the browser wait before downloading it. Check your theme's product gallery code (in Dawn, snippets/product-media-gallery.liquid) so the first image loads eagerly and with high priority.
  • Serve the right size. Use the image_url filter with a width that matches the space the image fills.
  • Look at what loads first. If several marketing and analytics apps inject scripts into the <head> of theme.liquid, the browser handles those before rendering. Delay non-essential scripts or load them asynchronously.

How do I improve INP on a Shopify store?

INP replaced First Input Delay as a Core Web Vital in March 2024. FID measured only the delay before an interaction started. INP measures the whole time until the page paints the result, so it is harder to pass on busy ecommerce pages.

On Shopify, poor INP almost always comes from heavy JavaScript blocking the main thread. When a visitor taps a variant swatch, the page has to update the image, price and button state. If the theme or an app runs a lot of script on that tap, the page feels stuck. Remove apps and scripts you do not need, delay the ones you keep, and compare your theme to a current one such as Dawn, which uses lighter native browser features than older jQuery-based themes.

A thermal label printer sitting on a packing bench next to packing tape.
Store speed optimization happens behind the scenes, just like efficient warehouse packing.

Which apps hurt Core Web Vitals most?

Apps that change the storefront do: reviews, live chat, pop-ups, currency converters and personalization. Weigh each app's cost against its value, and measure rather than guess. If a chat tool costs you speed and is rarely used, remove it. How to find the apps slowing your store walks through the test, including how to check for code an app left behind.

Fixing layout shift

CLS happens when something loads and pushes other content out of the way.

  • Images without dimensions. If an image has no width and height or aspect ratio, the browser cannot reserve space and the page jumps when it loads. Set dimensions on all images.
  • Late-loading elements. Announcement bars, cookie banners and review stars added by script after the page renders push content down. Reserve space for them with a minimum height in CSS, or render them on the server where possible.

Order of work

  1. Read field data and pick the worst template.
  2. Remove or delay the heaviest scripts.
  3. Fix the LCP image and its size.
  4. Add image dimensions and reserve space for late elements.
  5. Retest the same pages and keep a note of each change.

The Shopify page speed guide puts this into a full plan, and the theme speed guide covers the theme code and tracking tags.

Check your store

SEO Karbon's free Shopify SEO audit measures speed on your real product and collection pages as part of 71 checks across 10 areas, with no login. If you need help diagnosing complex theme or app issues, Digital Karbon works with Shopify brands on exactly that.

Next step

See how your own store scores

The free audit checks your store against the issues in this article — indexation, duplicate collections, page speed and everything else that holds a Shopify store back — and shows you what to fix first.