Skip to main content
Shopi5ProRequest a Quote

ANONYMISED CASE STUDY · PERFORMANCE ENGINEERING

Targeted Shopify Performance Fixes Across Product Pages.

A Shopify storefront needed focused improvements to media delivery and visual stability. Rather than proposing a full redesign, the work targeted specific technical issues affecting product templates.

Anonymised client project · Performance Engineering

Illustration of two phones showing the same product page. Before: the product photo has loaded and pushed the title, colour swatches and Add to bag button down the screen. After: a placeholder already holds the photo's space, so the content below stays in place.

Illustrative example · not a client store

Project Overview

The store did not need a redesign or a new app. It needed two specific problems fixed at template level, so that one change covered every product page, and it needed the work measured the same way before and after so the comparison would be fair.

Anonymised client project: Anonymised Shopify retailer. Selected projects are anonymised to respect client confidentiality.

Client
Anonymised Shopify retailer
Platform
Shopify theme, product templates
Focus
Visual stability and media delivery
Scope
Image dimensions and video delivery across the product pages
Evidence
Before and after measurements, written handover

What we found

The Challenge

Product images without declared dimensions can cause layout shifts as a page renders: the browser does not know how much space to reserve, so content jumps when each image arrives. Video delivery can also add unnecessary overhead to product pages. The project addressed both areas through targeted implementation.

  • Images without declared dimensions

    The theme rendered product gallery images with empty width and height attributes. Until each file arrived, the browser had no way to know how much space to keep for it.

  • Video delivered as the original master file

    Product pages with a video section played the original high-resolution file, set to autoplay, rather than a version prepared for the screen it was being watched on.

  • Both problems sat in shared templates

    Because the images and the video came from the theme's product template, every product page inherited them. Fixing the template would fix the pages; editing pages one by one would not.

Before changing anything

The Technical Investigation

We reviewed the product templates and media sections of the theme to find where images were rendered without width and height attributes, and how product videos were being requested and loaded. The review concentrated on the product page, because that is where shoppers make the decision to buy and where media is heaviest.

  • Product template and media section code reviewed for undeclared image dimensions.
  • Video embedding and loading behaviour on product pages reviewed.
  • Affected product pages identified so the fixes could be scoped and tracked.

Diagram of the theme files reviewed: the product template, the media gallery snippet that rendered images without dimensions, and the video section that autoplayed the original file.

How We Approached It

Measure first, change a copy of the theme, check it against the live store, then measure again the same way.

  1. Step 1

    Measure first

    Before any change

    • Every product page tested on mobile and desktop
    • Several runs per page, the middle result recorded
  2. Step 2

    Work on a copy

    Theme duplicate

    • Backup of the live theme kept
    • All edits made on the duplicate
  3. Step 3

    Fix at template level

    Image snippet and video section

    • One change covers every product page
    • No page-by-page edits
  4. Step 4

    Compare, then publish

    Real browser, phone and desktop

    • Image sizes and page heights unchanged
    • Original video file never requested
  5. Step 5

    Measure again

    Same pages, same tool

    • Before and after reported side by side
    • Lab results labelled as lab results

The work completed

What Was Delivered

Image dimensions, declared in the template

The image snippet now writes each image's real width and height into the markup. The browser reads the shape before the file arrives, reserves the right space, and nothing below the image moves when it appears.

Code change in the image snippet: empty width and height attributes replaced with the image's own width and height.

Video, delivered when it is needed

The video section no longer requests the original file as the page opens. It shows a poster image first and asks for a compressed version, sized for phones or larger screens, only when a shopper scrolls near it. The product gallery video now downloads only when a shopper opens it.

Two loading sequences. Before: the page requests the original video file as it opens. After: a poster shows first and a compressed version is requested only when the shopper scrolls near the video.

A correction found while testing

Testing on phones showed that a colour-swatch script scrolled the page down shortly after it loaded, past the product photos. The script was corrected so the page stays where the shopper left it, with colour switching working exactly as before.

Delivered, item by item

  • Image-dimension corrections across the affected product pages.
  • Video-delivery improvements across the affected product pages.
  • A documented technical handover describing the completed fixes.

Evidence

Verification and Documented Outcomes

The implementation scope and the fixes applied were documented for the handover. The final post-change Core Web Vitals and conversion results are not yet confirmed for public use, so this case study does not claim a particular percentage speed improvement or sales uplift.

How the Work Was Checked

  • Changes were made on a duplicate of the live theme, with a backup kept, so the store could be restored at any point.
  • The edited theme was compared with the live store in a real browser, on phone and desktop sizes: images the same size, page heights unchanged, the original video file never requested.
  • The same product pages were measured before and after, with the same tool, on mobile and desktop separately.
  • Each page was tested several times and the middle result reported, because a single run is not reliable.
  • Lab measurements were labelled as lab measurements and never presented as real-visitor data.
  • Where the testing tool itself behaved inconsistently, the report said so and explained how those results were treated.
Verification record
AreaStatusNote
Product imagesVerifiedWidth and height declared where they were previously missing.
Product videosVerifiedDelivery changed from the original embed to an optimised approach.
HandoverVerifiedScope and completed fixes recorded in a written handover.
Post-change Core Web VitalsOut of scopeNot confirmed for public use; no figure is claimed.

What the Evidence Shows

This case study describes the scope and the completed fixes. It does not claim a measured speed improvement.

What the Project Delivered

  • Space reserved for product images

    Declared dimensions on product images, set once in the template and inherited by every product page.

  • Video that loads when it is needed

    A poster first, then a compressed version for the shopper's screen size, requested only when the video comes into view.

  • A record the team can keep

    A written handover describing the scope, each completed fix and how it was measured.

What you receive

The Report You Receive

A speed project ends with a written before-and-after report: every product page measured the same way twice, with the before reading next to the after. This sample uses a fictional store, so every name and figure in it is invented.

Sample report · fictional store · invented figures

What's inside

  • What changed, in figures and in plain words
  • Your key product pages, before and after
  • Every page on mobile and on desktop
  • How it was measured, so you can check it yourself
Open the Sample Report (PDF) (opens in a new tab)

6 pages · A4 · opens in a new tab

Why This Matters for a Store

Declared image dimensions let the browser reserve the right space before an image loads, so the page does not shift under a shopper who is reading or about to tap. Lighter video delivery reduces what a product page must download before it becomes useful, which matters most on mobile and slower connections. Both are the kind of focused change that improves the shopping experience without a redesign or a new app.

Project details are anonymised. The work described is drawn from a documented technical handover and does not imply a guaranteed performance outcome.

All services
  • SEO & Performance

    Speed Optimisation

    Investigate Core Web Vitals, reduce avoidable bottlenecks and make pages more stable and responsive.

    Explore Performance
  • Development

    Fixes & Troubleshooting

    Troubleshoot broken layouts, cart behaviour, app conflicts and other frustrating storefront issues.

    Explore Fixes

Further Reading

Guides and case studies that explain this work in more depth.

Have a Similar Challenge?

Tell us which pages feel slow or jumpy, and on which devices. A screenshot or a link to a PageSpeed result helps.

You don't need a technical specification. A description of what you're seeing is enough to start.

Helpful to include

  1. The pages or templates affected
  2. What shoppers see, in your own words
  3. Any apps or recent theme changes

Enquiry about: Speed Optimisation

Tell us what's happening, what you'd like to achieve and anything relevant about your setup. At least 30 characters.

Please don't include passwords, API keys or sensitive customer data in this form.

Prefer the full form? Use the contact page