19 to 95: a year of performance work on a Shopify Plus store, stage by stage
The full account of the Lovepop performance programme: where the home page started (a Lighthouse 19 on the worst run), how six phases took it to 51, then 59, then 90, then 95, what each reading showed, and what Search Console, the visitor data and the client said at the end.
Before the programme the Lovepop home page scored as low as 19 on Lighthouse, mobile. In September 2025 the same page scored 95. Between those two numbers there were four more readings, six phases of work, one regression we caused ourselves, and a month-long wait for Google to agree.
This is the whole account, in the order it happened, with the report from each stage. It is long on purpose: the short version is on the case study, and the other posts in this series each take one stage apart. This one puts them in a row.
Stage 0: where we started
Lovepop is a Shopify Plus storefront with a lot going on: personalisation, search, reviews, a cart drawer, and the tag stack a DTC brand of that size accumulates over the years. Before we changed anything we ran Lighthouse on the home page, on a throttled phone, more than once. Runs ranged from 19, the lowest we recorded, to 38. The 38 run, from November 2024, is the one we kept as a full report, and its numbers are below.

The headline numbers:
- First Contentful Paint 5.3s. Nothing drawn for over five seconds.
- Largest Contentful Paint 9.1s. The hero banner arrived after nine.
- Total Blocking Time 820ms. The main thread was too busy to answer a tap for most of a second, in total, during load.
- Speed Index 8.6s. Cumulative Layout Shift 0.005, the one good number.
Lighthouse attached two warnings to the run: stored data in IndexedDB may have affected it, and the page loaded too slowly to finish within the time limit. The second warning is a finding in itself.
Where the nine seconds went
Lighthouse splits LCP into four phases. For the hero image:

| Phase | Time | Share |
|---|---|---|
| Time to first byte | 700ms | 8% |
| Load delay | 6,230ms | 69% |
| Load time | 410ms | 4% |
| Render delay | 1,760ms | 19% |
The image took 410ms to download. It then waited 6.2 seconds before the browser even asked for it, and another 1.8 seconds after it arrived before it was painted. Load delay being 69% is the number that decided the whole programme: the browser was busy doing something else for six seconds, and that something was JavaScript. If we had started with images, as most performance advice says to, we would have fixed a 410ms problem on a 9,100ms page.
The JavaScript
Script execution was 4.9s and main-thread work 18.2s: 7.8s “other”, 5.5s script evaluation, 2.9s style and layout, 0.7s parsing, 0.6s rendering, 0.5s garbage collection. The page’s own code was most of it: the document itself at 8.9 seconds of CPU, then a product card script, a preconnect script, a sticky header, the cart drawer, the search autocomplete, each loading on a page where most of them had nothing to do yet.
Then sixteen third parties:

Google Tag Manager alone transferred 417 KiB and blocked the main thread for 287ms. Intelligems, the A/B testing tool, 246ms. Clarity 113ms, TikTok 87ms. Together, 840ms, which is roughly the whole Total Blocking Time.
Why it was a business problem
Two things made this more than a developer’s concern, and both went on the first slide of the report we eventually presented:

Shopify’s visitor analytics for 23 October to 23 December 2024 showed a share of visitors leaving before the page had drawn anything. And Google Search Console had flagged 1,926 pages with an INP problem on mobile: interactions taking longer than 200ms to respond. The Lighthouse score on that slide reads 33; between runs in that period it ranged from 19 to 38, and the 38 run is the one we kept as a full report.
The plan: six phases, in order
The programme started on 10 October 2024, as a plan rather than a ticket. Six phases, each shipped and measured before the next began.

The order comes straight from the report above. First-party JavaScript was the biggest slice and ours to change, so phases 1 and 2 are about it. Phase 3 builds the two tools the later phases need. Phases 4 to 6 use them. Third parties and images come inside those phases rather than before them, because moving them is quick once the page is no longer busy.
Stage 1: 19 to 51 (October 2024 to February 2025)
Phase 1: one bundle for personalisation
The personalisation code ran on the collection page, the product page and the cart, and each surface had grown its own copy with its own dependencies. We bundled it once, loaded it once, and shipped that first because it was narrow enough to prove the approach without touching the theme’s structure.
Phase 2: one script and one stylesheet per page
A Shopify theme has one theme.liquid, and over the years it collects script and link tags: a slider library for the home page, the review widget for product pages, the filter code for collections, a countdown for a campaign that ended. Each was added for one page and loaded on all of them. Sections and snippets do the same thing one level down.
We reorganised theme.liquid, the sections, the snippets, the JavaScript and the CSS so that every page template has a stylesheet and a script of its own. theme.liquid loads only what every page needs: base styles, header, cart, the analytics the business cannot live without. Each template adds its own page script and page stylesheet. A section that needs more declares it per section, so the code arrives only where the section is rendered.
This was the slowest phase and the least visible. Nothing could break: a script that was global for three years has consumers nobody remembers. We moved one file at a time, with the theme preview on a phone and a list of every template to click through after each move.
Phase 3: the two tools
Before moving anything behind the first paint, we built two small pieces of infrastructure and shipped them with nothing using them. A delay helper: a resource is registered rather than loaded, and the helper loads it after first paint or on the first interaction. A lazy component helper: a section renders a placeholder with the right dimensions, and an intersection observer swaps in the real thing when it nears the viewport.
Shipping them empty let us test them alone, and it meant each later phase was a data change, not a code change.
The reading: 51
On 14 February 2025 the home page scored 51. Thirteen points for four months. The heavy things still loaded; they just loaded from better-organised files. What had changed was that “delay this” and “load this on demand” were now one-line changes to one file each, instead of an archaeology project. The next thirteen points took a fraction of the time.
Stage 2: 51 to 59 (February to June 2025)
Phase 4: delay resources
With the tools in place, phase 4 went through the list of scripts and stylesheets that are not needed for the first paint and registered them with the delay helper: analytics, session recording, the chat widget, the SMS tool, the slider library on pages where the slider is below the fold.
The hard case was the A/B testing library. If it changes what the visitor sees, running it late causes a flash of the original. It was delayed to first interaction, with test variants applied by CSS where possible. A compromise, and a documented one.
The reading: 59, and a regression we caused
In June 2025, with phase 4 part-shipped, the home page scored 59.


Total Blocking Time was down from 820ms to 460ms and LCP from 9.1s to 5.2s. The LCP breakdown told us what was left:

Load delay had halved, from 6,230ms to 2,860ms, and it was still the biggest slice at 55%. Render delay was 1,380ms. The main thread was less busy, not yet free.
And one number went the wrong way. Cumulative Layout Shift was 0.071, up from 0.005. Still inside the “good” band, but a regression, and ours: some of the components now loading late did not reserve their space first, so the page shifted when they arrived. Every lazy placeholder got explicit dimensions after that, and it is the rule we check first in review now.
Stage 3: 59 to 90 (June to July 2025)
Phases 5 and 6: on demand and on scroll
Phase 5, dynamic import, took everything with a trigger and loaded it on the trigger: the cart drawer when the cart icon is tapped, the login form when it is opened, the quick-add modal on collections, the search, the confetti animation on the product page after an add to cart. Phase 6, lazy-load components, took everything with a position and loaded it as it scrolled into view: the home page sliders, the occasion reminder banner on collections, the product recommendations and the customer reviews.
The rule for choosing between the three tools: if it has a trigger, import on it. If it has a position, lazy-load at it. If it has neither, delay it. Nothing was removed. On a store where every widget has an owner who will notice, that matters: everything still works, it just stops competing with the first paint.
Import on demand has one failure mode worth naming: the tap arrives, the code has not, and nothing happens for 300ms. The cart drawer warms its import on hover and on first scroll, so by the time the tap lands the module is usually there.
The reading: 90
On 30 July 2025, PageSpeed Insights gave the mobile home page 90.

Total Blocking Time 0ms. Cumulative Layout Shift 0. The main thread was free and the regression was gone. First Contentful Paint at 2.4s and Speed Index at 4.6s were still amber: with the JavaScript out of the way, the first paint was now waiting on the document and the fonts, which is the next stage.
Stage 4: 90 to 95 (August to September 2025)
With the big slices gone, the last five points were the small ones. The hero image got fetchpriority="high" and lost its lazy-load attribute, so the browser asks for it in the first batch of requests rather than after discovering it in the layout:

Fonts were preloaded, with a short list: the two faces the first screen uses, nothing else. Preconnects were trimmed to the origins the page genuinely hits early. A preload list of fifteen things is just a slower page with extra steps.
The reading: 92 and 95
On 27 September 2025, two runs of the home page returned 92 and 95.



On the 95 run: First Contentful Paint 1.6s, Largest Contentful Paint 2.8s, Total Blocking Time 0ms, Cumulative Layout Shift 0.002, Speed Index 2.7s. Main-thread work was 3.2s, down from 18.2s. The third-party table had four entries on the critical path instead of sixteen, and the largest of them, Heap, cost 16ms.
GTmetrix, which tests on a faster profile, moved the home page from an F to a B over the same period, with a product page reaching an A.
What was left in the report
A 95 still has findings, and they are worth listing because of what they are not:

- The document request itself: the server responded in 641ms. That is the platform’s time, not the theme’s.
- Font display on the Lato and IvyPresto web fonts, 610ms of estimated savings.
- 88 KiB of image savings, mostly one banner served larger than its displayed size.
- A
cache-control: no-storeheader that stops the page entering the back/forward cache. - 90 KiB of unused JavaScript, most of it the A/B testing bundle and a jQuery the theme no longer needs.
None of them is the theme’s JavaScript. That is what a finished programme’s report looks like: the remaining items belong to the platform, the fonts and the tag owners.
Stage 5: what the real visitors saw
Everything above is lab data: Lighthouse on an emulated phone with a throttled network. The number Google ranks on is field data, collected from real Chrome users and reported in Search Console, and it lags the lab by about a month.
The lab score reached 90 at the end of July. In early August the Core Web Vitals report in Search Console flipped: on the mobile chart, the amber “needs improvement” line drops to zero between the 3rd and the 7th and the green line takes its place.

By mid-September: 0 poor, 0 needing improvement, 1,861 good URLs. By November, with more of the catalogue crawled, 2,092 good URLs and still nothing in the other two columns.

Shopify’s visitor analytics, the same report that had shown people leaving before the page drew, showed an 80% reduction in visitors lost that way, with 92.5% of sessions now in the good bucket.


Three sources, one direction. That is when a performance programme is finished.
What the client said
We presented the result as four slides: the problem as the business felt it, the result in three numbers, the strategy as a house being built in order, and what happens next.


The same day, 27 September 2025, Keith at Lovepop posted this to the site-experience channel:
All, Sony (Dat) on our front end team has been working very hard to improve the performance of the site. It was a tremendous amount of work that required a detailed focus, analysis and resolution of many issues or blockers on the site. This is a HUGE win for our customers and will also improve our SEO performance over time. Thank you Sony (Dat) for all the hard work on this.

I would add one thing. Lighthouse is a strict tool: it tests on a slow network with an older Chromium engine, and it does not care how busy the store is. That is why it is the number to use. If it moves, the phones in people’s hands moved first.
Keeping it
A performance programme that is one developer’s project regresses. One that is part of how the team ships does not.

Fourteen URLs across the home page, collections and products are monitored in GTmetrix, so a regression shows up as a line going the wrong way rather than as a complaint months later. The history from December 2024 to November 2025 is the whole programme in one chart:

And we added a check to the review process: if a pull request adds a script, a stylesheet or an image above a size threshold, that gets discussed before it merges. Not blocked, discussed. Most of the time there is a lighter way to do the same thing, and the person writing the code just did not know the budget existed.
Every reading, in one table
| Date | Tool | Score | FCP | LCP | TBT | CLS | SI |
|---|---|---|---|---|---|---|---|
| Late 2024 | Lighthouse, mobile | 19 | |||||
| Nov 2024 | Lighthouse, mobile | 38 | 5.3s | 9.1s | 820ms | 0.005 | 8.6s |
| 14 Feb 2025 | Lighthouse, mobile | 51 | |||||
| Jun 2025 | Lighthouse, mobile | 59 | 3.1s | 5.2s | 460ms | 0.071 | 5.5s |
| 30 Jul 2025 | PageSpeed Insights, mobile | 90 | 2.4s | 2.9s | 0ms | 0 | 4.6s |
| 27 Sep 2025 | Lighthouse, mobile | 92 | 1.5s | 2.2s | 250ms | 0.007 | 3.6s |
| 27 Sep 2025 | Lighthouse, mobile | 95 | 1.6s | 2.8s | 0ms | 0.002 | 2.7s |
The 19 was the lowest run we recorded before the programme; the 38 run is the one kept as a full report. The February reading was taken from the team’s own report at the time and we kept only the score. Everything else is from the saved reports.
The rest of this series takes each stage apart: the before report, one script and one stylesheet per page, delay, import on demand, lazy-load, the third-party audit, presenting the result and the field data in Search Console.