Back to Blog
Optimization

Shopify Performance Optimization: The 2024 Field Guide

A technical and operational playbook for unlocking sub-second load times, resilient caching, and conversion-friendly experiences on Shopify Plus.

MA
Mateo Alvarez
Lead Performance Engineer
Feb 20, 2024
4 min read
OptimizationInsight

Shopify Performance Optimization: The 2024 Field Guide

4 min read

Shopify Performance Optimization: The 2024 Field Guide

Performance is the silent salesperson on your Shopify Plus store. When pages load in under a second, bounce rates drop, search ranking stabilizes, and conversion rates climb. This guide distills the tactics we use when we take a brand from a Lighthouse sc ore in the 50s to a rock-solid 90+ across key templates.

Performance dashboard showing Core Web Vitals

Step 1: Baseline and monitoring

  1. Audit Core Web Vitals using PageSpeed Insights, WebPageTest, and SpeedCurve synthetic monitoring. Track mobile first.
  2. Instrument real-user monitoring (RUM) via PostHog or New Relic Browser to capture actual device data.
  3. Configure performance budgets for LCP, FID, CLS, and TTFB. Alert the engineering channel in Slack when thresholds are br eached.

Step 2: Optimize the storefront codebase

  • Code split aggressively. Break out rarely used sections, wrap them in dynamic imports, and leverage next/script to defer third-party scripts until interaction.
  • Purge unused Liquid and CSS. Audit theme sections and CSS frameworks. Tailwind JIT and CSS containment reduce bundle size dramatically.
  • Ship modern images. Replace PNG hero images with WebP or AVIF, enable srcset, and set a 16:9 aspect ratio to avoid layou t shifts.
  • Cache GraphQL responses. Use storefront API caching with short TTLs for PDP data and longer TTLs for navigation and footers .

Step 3: Boost server and edge performance

  • Adopt Shopify's Oxygen hosting for Hydrogen/Remix builds or deploy to Vercel with edge functions. Keep server response tim e under 200 ms globally.
  • Leverage CDN caching rules. Cache HTML for logged-out users while bypassing for personalized sessions. Configure stale-whi le-revalidate for resilience.
  • Optimize Liquid theme settings. Minimize synchronous Liquid loops, use section rendering APIs, and evaluate the impact of Liquid for loops on API calls.

Step 4: Tame third-party scripts

  • Create a tag governance policy. Score every script on revenue impact vs. performance cost. Remove or async-load anything w ith a low score.
  • Use server-side tagging. Move analytics beacons into Google Tag Manager server-side or Shopify Web Pixels to reduce client payload.
  • Lazy-load widgets. Launch reviews, chatbots, and personalization layers with IntersectionObserver so they appear only when the user scrolls into view.

Step 5: Conversion-driven testing

  • Run lighthouse automation in CI and block deployments that fail budgets.
  • Test performance-led experiments. A/B test removing hero carousels, consolidating images, or prefetching next-step pages. Track conversion rate and average order value.
  • Measure the bottom line. Tie performance improvements to revenue by blending Shopify analytics with your PostHog funnels.

Turn this into a benchmark

Use the checks above to create a baseline for your own storefront: record the current metric, make one controlled change, and compare the result. We do not currently operate an automated workbook-download or follow-up email sequence for this guide.

Get performance notes when they are useful

We send Shopify performance, conversion, and implementation notes only after we approve something useful to share. Confirm your email before any newsletter is sent, and unsubscribe whenever you want.

Keep iterating

Performance isn't a one-and-done project. Treat it as an ongoing practice: set quarterly OKRs, inspect your dependencies, and make performance a release gate. If you need help building the dashboards or automations described here, book a performance assessment. We'll share our pnpm dlx scripts, Lighthouse CI config, and PostHog dashboards so you can plug them into your own stack.

Share this article

Help others learn about this topic

Tags
PerformanceCore Web VitalsConversion Rate Optimization

Stay Updated

Get Shopify build, conversion, and growth notes when we have something useful to share. We’ll ask you to confirm your email before sending anything else.

We use this address only for the newsletter. See our privacy policy.

Useful Shopify notes, sent only when we have something worth sharing.

MA

Mateo Alvarez

Lead Performance Engineer

Heads the performance engineering team at madeforshopify and previously optimized storefronts for large Shopify storefronts.