Shopify Speed Optimisation: 10 Fixes That Improve Core Web Vitals
Shopify gives every store a fast global CDN, but that does not guarantee a fast store. Most of the slow Shopify sites we audit are slowed down by the same handful of problems. These ten fixes consistently improve Core Web Vitals — LCP, INP and CLS — on real mobile devices.
1. Measure real users first
Lab scores are useful for debugging, but rankings and conversions depend on field data. Start with the Core Web Vitals report in Google Search Console and Shopify’s own web performance dashboard, and note which templates — home, collection or product — are failing.
2. Audit your apps
Every app that adds a script to the storefront costs performance. List them, remove the ones you no longer use, and check that uninstalled apps have not left code behind in your theme files.
3. Serve responsive images
Never output the original upload. Let Shopify’s CDN generate the right size for every screen:
{%- comment -%} Main product image: responsive and prioritised {%- endcomment -%}
{{ product.featured_media
| image_url: width: 1200
| image_tag:
widths: '400, 600, 800, 1000, 1200',
sizes: '(min-width: 990px) 50vw, 100vw',
loading: 'eager',
fetchpriority: 'high',
alt: product.featured_media.alt
}}
4. Prioritise the LCP image
The hero or main product image is usually the Largest Contentful Paint element. Load it eagerly with fetchpriority: 'high' as above, and make sure it is not lazy-loaded or hidden behind a slider script.
5. Lazy-load everything below the fold
Images in lower sections, collection grids past the first row and footer content should use loading: 'lazy'.
6. Defer non-critical JavaScript
<!-- Non-blocking theme JavaScript -->
<script src="{{ 'theme.js' | asset_url }}" defer="defer"></script>
Load chat widgets, reviews carousels and personalisation scripts after user interaction or when they scroll into view.
7. Reserve space to prevent layout shift
Always output width and height on images (image_tag does this for you), give embeds and announcement bars a fixed height, and avoid injecting banners above content after load.
8. Be careful with web fonts
Use the theme’s font settings or the font_url filter, limit yourself to two weights per family, and preload only the font used above the fold.
9. Replace heavy sliders and video
Auto-playing hero videos and carousel libraries are frequent LCP and INP problems. A single, well-optimised hero image usually converts as well or better.
10. Keep tracking under control
Move marketing tags into Shopify’s customer events and web pixels, remove duplicate analytics, and review your tag manager every quarter.
Make it stick
Speed is not a one-off project. Add a performance check to every theme release and review field data monthly, so a new app or campaign does not quietly undo the work.
Want a clear plan for your store? Our Shopify developers offer a performance audit with a prioritised list of fixes.
