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.
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.
Step 1: Baseline and monitoring
- Audit Core Web Vitals using PageSpeed Insights, WebPageTest, and SpeedCurve synthetic monitoring. Track mobile first.
- Instrument real-user monitoring (RUM) via PostHog or New Relic Browser to capture actual device data.
- 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/scriptto 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
forloops 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.
- Join the MadeForShopify newsletter.
- Your confirmation email is the first and only email sent until you choose to confirm.
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.
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.
Useful Shopify notes, sent only when we have something worth sharing.
Mateo Alvarez
Lead Performance Engineer
Heads the performance engineering team at madeforshopify and previously optimized storefronts for large Shopify storefronts.
Related Posts
View AllShopify Plus Checkout Customization: Best Practices for 2025
5 min
Shopify Plus Checkout Customization: Best Practices for 2025
Master checkout extensibility on Shopify Plus with proven patterns for upsells, branding, validation, and payment customization that protect conversion rates.
Conversion Rate Optimization for Shopify Stores: A Data-Driven Playbook
5 min
Conversion Rate Optimization for Shopify Stores: A Data-Driven Playbook
Learn the CRO framework we use to systematically lift conversion rates on Shopify Plus stores through experimentation, analytics, and UX improvements.
Headless Shopify: When and Why to Go Headless
5 min
Headless Shopify: When and Why to Go Headless
Learn the business triggers, technical considerations, and launch blueprint for a high-performing headless Shopify architecture.