Back to blog
Shopify
December 20, 2023 13 min

Optimizing your Shopify site performance: complete technical guide

Your Shopify site speed is not a technical luxury: it's a direct commercial lever. Every additional second of loading reduces your conversion rate by 7% and degrades your Google ranking. A site that loads in 2 seconds converts 2 to 3 times better than a site that loads in 5 seconds. Yet, many Shopify stores are slow due to unoptimized images, too many applications, or a poorly chosen theme. This guide provides concrete techniques to make your Shopify site ultra-fast.

Optimizing your Shopify site performance: complete technical guide

Measure before optimizing

Before touching anything, measure your site's current performance to be able to compare after optimization.

Measurement tools

Google PageSpeed Insights provides a performance score and concrete recommendations. GTmetrix offers a more detailed analysis with history. WebPageTest allows testing from different locations and devices. Shopify's native speed report (in settings) gives a good first overview.

Core Web Vitals

Google evaluates 3 main metrics: LCP (Largest Contentful Paint) – the time it takes for the largest visible content element to load. Goal: less than 2.5 seconds. FID/INP (First Input Delay / Interaction to Next Paint) – responsiveness to interactions. Goal: less than 200ms. CLS (Cumulative Layout Shift) – visual stability of the page. Goal: less than 0.1. These metrics directly impact your SEO.

Establish your baseline

Test your homepage, a category page, a product listing, and the cart page. Note the scores for each Core Web Vital. This is your reference point for measuring the impact of your optimizations.

Optimize images: the #1 lever

Images represent on average 60 to 80% of the total weight of an e-commerce page. This is the primary optimization lever.

WebP format

WebP offers 25 to 30% better compression than JPEG with equivalent quality. Shopify automatically converts your images to WebP if you use native Liquid tags. Verify that your theme uses Shopify's native image components (image_tag) rather than classic HTML tags.

Sizing

Do not upload images 4000px wide for a display at 800px. Resize your images before uploading: main product photos at 1200-1600px wide, thumbnails at 400-600px, banners at your layout width (1400-1920px). Shopify automatically generates variants, but the source image influences quality.

Lazy loading

Lazy loading loads images only when they enter the viewport. This is essential for pages with many images (category page, homepage). Shopify's OS 2.0 themes natively support lazy loading. Verify that it is enabled in your theme settings.

Best practices

Compress your images before uploading with TinyPNG or Squoosh. Use descriptive file names for SEO (brown-leather-bag.jpg rather than IMG_4532.jpg). Always fill in the alt text for accessibility and SEO.

Audit and reduce applications

Every Shopify application adds JavaScript and CSS to your site. This is the second most common cause of slowness.

App audit

List all your installed applications. For each, ask yourself two questions: do you really use it? Does it provide value greater than its impact on performance? Do not hesitate to uninstall apps you no longer use. Warning: some apps leave residual code after uninstallation. Check your theme and clean up orphaned snippets.

Lightweight alternatives

Some functionalities covered by apps can be integrated directly into your theme with Liquid code. A free shipping banner, an urgency counter, a review block: these simple elements do not necessarily require a full app. Ask your developer to integrate these functionalities natively.

Most impactful apps

Apps that load widgets on the front-end (chat, pop-ups, reviews, product recommendations) have the most impact on performance. Evaluate whether the conversion gain justifies the loss of speed. A live chat that slows down your site by 2 seconds probably costs you more conversions than it generates.

Choose and optimize your theme

The theme is the skeleton of your site. A poorly optimized theme cripples your performance regardless of the quality of your content.

OS 2.0 themes

Shopify introduced Online Store 2.0 themes with a more performant architecture: deferred loading of sections, JSON templates, better asset management. If you are still using a Legacy theme, migrating to OS 2.0 can improve your performance by 20 to 40%.

Dawn: the performance benchmark

Dawn is the free reference theme created by Shopify. It is designed for performance: minimal code, no jQuery, native lazy loading, optimized responsiveness. It's the best starting point if performance is a priority. Premium themes like Prestige, Impact, or Sense are also good options with more integrated features.

Theme optimizations

Disable theme features you don't use. Reduce the number of sections on the homepage (aim for 5 to 8 sections maximum). Limit the number of products displayed per category page (12 to 24 with pagination). Use deferred loading for below-the-fold sections.

Advanced technical optimizations

To go further, some advanced techniques that make a difference.

Preloading critical resources

Use preload tags to prioritize loading of fonts, critical CSS, and the hero image. Example: <link rel="preload" href="font.woff2" as="font" crossorigin>. This technique reduces LCP by 0.5 to 1 second on average.

Reducing third-party JavaScript

Third-party scripts (analytics, advertising pixels, tracking tools) can account for 30 to 50% of loading time. Use Google Tag Manager to centralize and control the loading of your scripts. Load non-essential scripts deferred (defer or async).

CDN and caching

Shopify uses a global CDN (Cloudflare) by default. Your static assets are therefore already served from servers close to your visitors. Verify that your third-party scripts do not block browser caching. Use appropriate cache headers for your static resources.

Action plan by priority order

Here is the recommended order for optimizing your Shopify site's performance. First, audit and remove unnecessary applications (immediate impact). Second, optimize all your images (compression, format, dimensions). Third, verify that your theme is OS 2.0 and well configured. Fourth, configure lazy loading for all below-the-fold images. Fifth, audit third-party scripts and defer non-essential ones. Sixth, apply advanced technical optimizations. Measure after each step to validate the impact.

Key takeaways

  • Measure before optimizing (PageSpeed, GTmetrix, Core Web Vitals)
  • Images are the primary lever: WebP format, compression, lazy loading
  • Each added application slows down your site
  • OS 2.0 themes are significantly faster
  • Dawn is the most performant free theme
  • Audit and defer non-essential third-party scripts

Checklist

  • PageSpeed scores noted (baseline)
  • Images compressed and in WebP
  • Lazy loading enabled
  • Unnecessary applications uninstalled
  • Residual app code cleaned up
  • OS 2.0 theme verified
  • Third-party scripts audited and deferred
  • Critical resource preloading
  • Real mobile test performed
  • PageSpeed scores after optimization compared

Frequently asked questions

What PageSpeed score should I aim for on Shopify?
Aim for a mobile score of 60+ and a desktop score of 80+. A score of 90+ is excellent but difficult to achieve with an e-commerce site rich in images and features. The important thing is to have good Core Web Vitals.
Do Shopify apps really slow down the site?
Yes. Every application that injects front-end code (JavaScript, CSS) impacts loading time. The impact varies from a few milliseconds to several seconds depending on the application. Test by temporarily disabling your apps to measure the impact.
Do I need to change themes to improve performance?
Not necessarily. If your current theme is OS 2.0, optimizations may be sufficient. If you are on a highly customized Legacy theme, a migration to OS 2.0 is recommended but represents an investment (€2,000 to €8,000 depending on complexity).
Does speed really impact SEO?
Yes. Core Web Vitals are an official Google ranking factor since 2021. A slow site is penalized in search results, especially on mobile. The impact is indirect but real.

Need to optimize your Shopify performance?

We audit your site and implement technical optimizations for a fast and high-performing site.

Request a performance audit