Why Speed Matters for Shopify Stores
Every second of delay costs you 7% in conversions. For a Shopify store doing €50,000/month in revenue, that's €3,500 lost per month from a single second of extra load time. Speed isn't just a technical metric — it's a revenue driver.
Google also factors page speed into rankings. Faster stores rank higher, get more organic traffic, and convert better. It's a triple win.
1. Audit and Optimize Your Theme Code
Start with your theme's Liquid templates. Many Shopify themes include bloated code from features you're not using — sliders, mega menus, animations, and unused sections.
- Remove unused Liquid snippets and sections
- Minimize inline CSS and JavaScript in theme.liquid
- Use
{% render %}instead of{% include %}for better performance - Consider migrating to a lightweight theme like Dawn
2. Compress and Lazy Load Images
Images are typically the heaviest assets on Shopify stores, accounting for 50-70% of total page weight.
- Convert all product and collection images to WebP format
- Compress images to under 200KB without visible quality loss
- Use Shopify's built-in
image_urlfilter with size parameters - Implement native lazy loading:
loading="lazy" - Use responsive images with srcset for different screen sizes
3. Minimize Third-Party Apps
Each Shopify app adds JavaScript, CSS, and sometimes multiple API calls. The average Shopify store has 6-8 apps installed, but many are unnecessary.
- Audit every installed app — remove what you don't actively use
- Check if uninstalled apps left behind residual code
- Replace heavy apps with lightweight alternatives or custom Liquid code
- Use Shopify's built-in features before reaching for apps
4. Optimize Font Loading
Custom fonts are a major render-blocking resource. A single Google Font family can add 100-200ms to your LCP.
- Use
font-display: swapto prevent FOIT - Preload critical fonts with
<link rel="preload"> - Consider system fonts for body text — they're instant
- Limit to 2 font families maximum
- Self-host fonts instead of loading from Google Fonts CDN
5. Implement Critical CSS
The browser can't render your page until it downloads and parses all CSS. Critical CSS inlines the above-the-fold styles directly in the HTML head.
- Extract and inline above-the-fold CSS
- Defer non-critical stylesheets with media="print" hack
- Remove unused CSS rules (tools: PurgeCSS, UnCSS)
6. Optimize Liquid Template Rendering
Liquid is rendered server-side, so inefficient loops and queries directly impact TTFB.
- Paginate collections (don't load all products at once)
- Limit
forloops — avoid nested loops on collection pages - Use
limiton product queries - Cache expensive Liquid computations in snippet variables
7. Set Up Cloudflare CDN
While Shopify uses its own CDN (Fastly), adding Cloudflare as a proxy provides additional benefits that Shopify's CDN doesn't offer.
- Polish (automatic image optimization and WebP conversion)
- Minification of HTML, CSS, and JS at the edge
- DDoS protection and Web Application Firewall
- Edge caching with custom page rules
- HTTP/3 and QUIC support for faster connections
8. Preload Key Resources
Tell the browser about critical resources early so it can start downloading them before it naturally discovers them.
- Preload hero/banner images
- Preload critical fonts
- Preconnect to third-party origins (analytics, payment processors)
- Use
dns-prefetchfor non-critical third-party domains
9. Defer Non-Critical JavaScript
Analytics, chat widgets, social proof popups, and review apps don't need to load immediately. Deferring them can improve INP and LCP significantly.
- Load analytics scripts with
deferorasync - Delay chat widgets until user interaction (scroll/click)
- Load review widgets lazily (only on product pages, below the fold)
- Use Intersection Observer to load scripts when sections become visible
10. Monitor Performance Continuously
Speed optimization isn't a one-time task. New apps, theme updates, and content changes can introduce regressions.
- Set up weekly PageSpeed Insights monitoring
- Use Lighthouse CI in your deployment pipeline
- Track Core Web Vitals in Google Search Console
- Set up performance budgets for key metrics
- Review Real User Monitoring (RUM) data monthly
Real Results
Following these optimizations, my e-commerce clients typically see PageSpeed scores jump from 30-40 to 85-95+, with 20-45% improvements in conversion rates and significant reductions in bounce rate. Speed pays for itself. See my case studies for detailed before/after results.