The before report: what a failing Lighthouse score is made of
Reading the before report on a Shopify Plus home page: why a 9-second LCP was a JavaScript problem, not an image problem, and which numbers told us where to start.
Before we changed anything on Lovepop, we ran Lighthouse on the home page, on a throttled phone, more than once. The lowest run came back at 19. The one we kept as a full report, from November 2024, scored 38 on a kinder run, and a year later it is the most useful document from the whole programme, because it says exactly what a failing score is made of.
This post walks through that report. Not to pile on a slow page, but because the numbers tell you where to start, and most teams start in the wrong place.
The headline numbers
- First Contentful Paint 5.3s. Nothing drawn for over five seconds.
- Largest Contentful Paint 9.1s. The hero banner, the thing the page exists to show, arrived after nine.
- Total Blocking Time 820ms. The main thread was too busy to respond to a tap for most of a second, in total, during load.
- Speed Index 8.6s.
- Cumulative Layout Shift 0.005. The one good number: the page did not jump around.
Lighthouse also 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 one is a finding in itself.
Where the nine seconds went
Lighthouse breaks 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.
This is the number that decided the programme. If load time had been the big slice, we would have compressed images. Load delay being 69% means the browser was busy doing something else for six seconds, and that something was JavaScript.
The JavaScript
The report put total script execution at 4.9s and main-thread work at 18.2s, split like this:
- Other: 7,763ms
- Script evaluation: 5,461ms
- Style and layout: 2,888ms
- Script parsing and compilation: 719ms
- Rendering: 638ms
- Garbage collection: 532ms
The page’s own code accounted for most of it: the document itself at 8.9 seconds of CPU, then a product card script, a preconnect script, a sticky header, a cart drawer, the search autocomplete, each loading on a page where most of them had nothing to do yet.
Then the third parties, sixteen of them. Google Tag Manager alone transferred 417 KiB and blocked the main thread for 287ms. Intelligems, an A/B testing tool, blocked for 246ms. Clarity 113ms, TikTok 87ms. Together the third-party code blocked the main thread for 840ms, which is roughly the whole Total Blocking Time.
What this ruled out
A lot of performance advice is about images: WebP, lazy loading, correct sizes. All true, and we did it. But the report said images were a 410ms problem on a 9,100ms page. Starting there would have moved the score by a few points and left the structure untouched.
The order that follows from the report is the opposite of the usual one:
- Get the first-party JavaScript off the critical path. It is the biggest slice and it is ours to change.
- Then the third parties, which need the tag owners in the room.
- Then images and fonts, which are quick once the page is no longer busy.
That is the order the six-phase plan took, and the reason phase 1 was about bundling code rather than about anything a visitor can see.
The one thing to take from this
Run Lighthouse before you touch anything and read the LCP breakdown. If load delay is the big slice, you have a JavaScript problem wearing an image’s clothes. The fix is in a different part of the codebase from where the symptom appears, and the plan should start there.