Page speed that matters: Core Web Vitals in practice, and what to fix first
TL;DR
Difficulty: Intermediate
Google uses the Core Web Vitals in ranking, but relevance comes first and no score guarantees a position. Faster pages tend to sell more, and the size of the effect never transfers from a study to your shop.
- Judge speed on field data (CrUX, PageSpeed Insights, Search Console), mobile first, at the 75th percentile, never on a lab score.
- Fix in this order: the main image (in the HTML, sized, never lazy, high priority), server time and caching, fonts, third party scripts, the JavaScript behind slow taps, banners that make the page jump.
- Decide with the break even lift: for the example shop, a 0.70% relative lift in organic conversion pays for £6,000 of work in a year.
What to read first
"The agency says the site scores 88, so why does it feel slow on my phone?" This chapter answers the two questions behind that: how much speed really matters for rankings and sales, and what to fix first. It works through an invented garden furniture shop, from its field data to a scored fix list and an honest check four weeks later.
The short answer: speed is a tie breaker for rankings and a real lever for sales
Two questions hide in one here. Does a faster site rank better? A little, sometimes, and only once the content is right. Does a faster site sell more? Usually yes, but nobody can tell you by how much for your shop before you measure it.
Google's own documentation says its ranking systems use the Core Web Vitals, and in the same breath says that relevance comes first, even when the page experience is poor.1 So speed rarely lifts a page nobody needs. Where several pages answer a search equally well, it can tip the balance. The stronger case is the visitor who has already arrived: a page that shows its product quickly, answers a tap at once and does not jump about loses fewer people on the way to the basket.
What to fix first is less of a mystery than it looks. On a typical shop or service site the order is nearly always the same: the main image, then the server, then the fonts and the third party scripts, then the JavaScript that makes taps slow, then the banners that make the page jump. This article explains why that order holds, where each fix comes from in Google's own documentation, and how to check the result honestly.
If you have not read it yet, my earlier article on Core Web Vitals and user experience explains what each of the three metrics measures, with the formulas. This one assumes you know the three names and goes further into the practice: what the evidence says, where your numbers come from and the fixes in order of value.
Example: the shop in this chapter
The example runs through the whole of this series. Ashby Outdoor is an invented online shop for garden and outdoor furniture in Nottingham, at ashbyoutdoor.example, run by Tom. It sells 1,850 products in 14 categories. Organic search brings 38,000 sessions in May, its peak, and 14,000 in January. The organic conversion rate is 1.6%, the average order is £410 and the gross margin is 42%.
Tom's question is the one this article answers: "My agency says the site scores 88. The product pages feel slow on my phone. Does it matter, and if it does, what do I fix first?" Every figure about Ashby Outdoor in this article is made up for the example. Everything about Google, the browsers and the studies is sourced.
What Google actually says about speed and ranking
Most of the confusion about speed and rankings comes from people quoting each other instead of Google. Google's page on page experience is short and worth reading in full.1 Here is what it says, in plain words.
Core Web Vitals "are used by our ranking systems".1 That is the confirmation. There is, however, no single page experience signal. Google's core ranking systems look at a variety of signals that line up with overall page experience, and Google says so directly: "There is no single signal."1 Danny Sullivan, Google's public liaison for Search, repeated both points in April 2023, and added that good Core Web Vitals scores do not guarantee good rankings.2
The sentence that matters most for a small business is the one about relevance. Google says it always seeks to show the most relevant content, even when the page experience is poor.1 Page experience helps where there are many helpful pages that answer the question about equally well.
The same page lists the other questions Google asks about page experience: is the page served securely over HTTPS, does it display well on mobile, does it avoid intrusive interstitials (pop ups that cover the content), and is the main content easy to tell apart from everything else.1 Speed is one part of a wider picture.
Here is how I separate what is known from what is believed:
| Claim | Status | Source |
|---|---|---|
| Core Web Vitals are used by Google's ranking systems | Documented | Google Search Central1 |
| There is no single page experience signal | Documented | Google Search Central1 |
| Relevance wins over page experience | Documented | Google Search Central1 |
| Good scores do not guarantee good rankings | Documented | Google Search Central Blog2 |
| How much weight speed has against other signals | Unknown, not published | None |
| "Every 100 milliseconds is worth a ranking position" | Guesswork, often repeated | None I could find |
| A Lighthouse score of 100 helps rankings | Wrong: Google ranks on field data, not on a lab score | See the section on field data |
My view: treat ranking benefit as a bonus. Fix speed because it serves the people who already found you, and because the same fixes often make the site less expensive to run, not because a ranking report promises a jump.
Example: two garden bench pages
Tom's buying guide "How to choose a garden bench" competes with a large retailer's category page for the search "best wood for a garden bench". Tom's guide answers the question properly, with a comparison of teak, acacia and pine. The retailer's page is a grid of products with two lines of text and loads faster.
Google's documentation predicts what happens next: the guide can outrank the faster page because it is more relevant to the question. Speed comes into play against the three other shops whose guides are about as good as Tom's. There, a guide that appears in 1.8 seconds instead of 4.1 can be the deciding difference. Which signal decided an individual ranking, nobody outside Google can tell, and anyone who claims to know is guessing.
What speed does to sales: the evidence and how to read it
The most quoted study is "Milliseconds make millions", carried out by Deloitte and the agency 55 and commissioned by Google, published in 2020.34 Because a search engine with a stake in a faster web paid for it, I label it plainly: a vendor commissioned study. That does not make it wrong. It means reading the method before the headline.
The method, as Google's own summary describes it:3
- 37 leading brand websites in Europe and the United States, in retail, travel, luxury and lead generation.
- More than 30 million user sessions, with mobile load times watched hour by hour over 30 days at the end of 2019.
- The analytics setups were audited first, and no redesigns ran during the study.
- "Speed" meant four metrics: First Meaningful Paint, Estimated Input Latency, average page load time and Time to First Byte (TTFB, the time until the server sends the first byte of the page).
The headline: a 0.1 second improvement in mobile site speed went together with 8.4% more conversions on retail sites and 10.1% more on travel sites. Retail shoppers also spent 9.2% more per order.3
Read it with four caveats:
- It is an observational study across 37 brands, not a controlled test on your site. Faster sites may also be better run in other ways.
- The 0.1 seconds had to improve on all four metrics and on every page of the journey together. It does not tell you which fix earned what.
- Two of the four metrics, First Meaningful Paint and Estimated Input Latency, are no longer used by Google. Largest Contentful Paint replaced the first.
- The brands were large. A garden furniture shop with 14,000 sessions in January cannot detect a lift of 2% or 3% in a month, however real it is.
There is one controlled test I trust more: Vodafone's split test of a faster landing page, which I walked through in the Core Web Vitals article.5 It points the same way. Neither study tells you what your shop will see.
My view: the direction of the effect is well supported, the size is not transferable. The honest way to justify speed work is not to borrow somebody else's percentage, it is to work out how small a lift would pay for the work, and then judge whether that is plausible.
Example: how small a lift pays for the work
Tom has a quote for the fixes in this article: £6,000, invented for the example. Is it worth it? I work out the smallest relative lift in organic conversion rate that would pay the cost back within a year.
First, a rough year of organic search. Tom's months range from 14,000 sessions in January to 38,000 in May. I take the midpoint, 26,000 sessions, as a crude monthly average. His analytics would give him the real annual figure, and he should use that instead.
Here is the number of organic sessions in a year, built from the crude monthly average of 26,000.
The gross profit that organic search brings in a year is sessions times conversion rate times average order times margin:
Here is the annual gross profit from organic search, the annual organic sessions, the organic conversion rate, the average order value and the gross margin as a share. Foundations: ratios and rates.
Here orders, pounds of revenue, and pounds of gross profit.
The break even lift is the cost divided by that gross profit:
Here is the relative lift in conversion rate needed to pay the cost back in a year, the cost of the work and the annual gross profit from organic search. Foundations: percentages.
Here and , so is 0.70%.
So the organic conversion rate has to rise from 1.6% to about 1.611%, a relative lift of 0.70%, for the work to pay for itself in a year. That is far below anything the studies report, and it ignores paid traffic, email and direct visitors, who land on the same faster pages. Tom does not need to believe in 8.4%. He needs to believe in 0.70%. That is a decision he can make.
Field data first: where your numbers come from
Before any fix, you need to know whether there is a problem, and on which pages. There are two kinds of data, and mixing them up causes most of the arguments between shop owners and agencies.
Field data comes from real visitors. Google's source is the Chrome User Experience Report (CrUX), which collects anonymised timings from real Chrome users. Lab data comes from loading the page once in a controlled setting, with a simulated phone and network. Lighthouse, the tool behind the familiar 0 to 100 performance score, is lab data.
Google assesses Core Web Vitals on field data, at the 75th percentile of page loads, with mobile and desktop counted separately.6 The thresholds for "good" are:6
| Metric | What it measures | Good | Poor |
|---|---|---|---|
| Largest Contentful Paint (LCP) | When the main content appears | 2.5 seconds or less | over 4 seconds |
| Interaction to Next Paint (INP) | How fast the page answers a tap, click or key press | 200 milliseconds or less | over 500 milliseconds |
| Cumulative Layout Shift (CLS) | How much the content jumps | 0.1 or less | over 0.25 |
INP replaced First Input Delay as a Core Web Vital on 12 March 2024.7 Any report that still lists First Input Delay is out of date.
The three places to look, and what each one tells you
PageSpeed Insights shows both kinds of data on one screen. The top part is field data from CrUX over the previous 28 day collection period. If the single URL has too few visits, it falls back to the origin, meaning the whole site, and says so. The page passes the Core Web Vitals assessment if all three metrics are good at the 75th percentile. The lower part is a Lighthouse lab run on an emulated mid range phone on a throttled mobile connection.8
The Core Web Vitals report in Search Console groups pages with a similar experience into URL groups, so you see "product pages" rather than 1,850 separate products. A group's status is the status of its worst metric, separately for mobile and desktop. Once you fix something, you can start a 28 day validation, and the issue counts as fixed when it does not reappear in that window.9 The report only shows groups with enough data, so a small site may see little there. The Search Console chapter later in this series covers the other reports.
Lighthouse in Chrome's developer tools or in PageSpeed Insights tells you why a page is slow. Its score is a weighted blend of five lab metrics: Total Blocking Time 30%, Largest Contentful Paint 25%, Cumulative Layout Shift 25%, First Contentful Paint 10% and Speed Index 10%.10 Two of those are not Core Web Vitals at all, and INP cannot be measured in a lab because nobody taps. Lighthouse's own documentation suggests thinking of performance as a distribution rather than a single number, because the score moves with network routing, devices, extensions and many other conditions.10
My view: the field tells you whether it hurts and where, the lab tells you why. A lab score on its own proves nothing to Google or to your customers.
Example: Tom's two reports
Tom's agency ran Lighthouse on desktop and reported 88. Tom opens PageSpeed Insights for his best selling product, a teak bench, and then the Search Console report. These are the invented numbers for the product page group, at the 75th percentile:
| Device | LCP | INP | CLS | Status |
|---|---|---|---|---|
| Mobile | 4.1 s | 310 ms | 0.19 | Poor (LCP over 4 s) |
| Desktop | 2.3 s | 120 ms | 0.08 | Good |
Mobile brings 70% of Ashby's organic sessions, so the desktop pass is the minor result. The product page group fails on mobile on all three metrics, and LCP is in the poor band. The lab run on mobile scores 41, which is the more honest lab figure, but even that only matters as a diagnostic.
Both reports are true. The agency measured its own fast desktop machine. CrUX measured Tom's customers, most of them on phones, many on a patchy connection in the garden.
Where the time goes on a typical shop page
On most shop pages the largest element in the first screen is a product photo. The HTTP Archive's Web Almanac 2024, which analyses millions of public websites, found that the LCP element was an image on 73% of mobile pages.11 So the first question is nearly always: how quickly does that image arrive and appear?
Google splits LCP into four parts that add up to the whole: the time to first byte, the resource load delay (how long before the browser even starts to fetch the image), the resource load duration (the download itself) and the element render delay (the gap between the image arriving and it being painted). On a page in good shape, Google's guide suggests roughly 40% in the server time, 40% in the download, and under 10% in each of the two delays.12 The delays are waste: time when nothing useful happens.
The Web Almanac also shows how often sites stand in their own way.11
- 16% of mobile pages lazy load the very image that is their LCP element, through the browser's own
loading="lazy"or a script. - Only 15% of mobile pages give their LCP image a high fetch priority, although that number grew from almost zero in 2022.
- 66% of mobile pages have at least one image without set dimensions, which invites layout shifts.
- 85% of mobile pages use web fonts.
These are industry measurements of the public web, not Google's ranking statements, but they explain why the fix list below looks the way it does.
Example: Tom's 4.1 seconds, broken down
Using the performance panel in Chrome's developer tools on a throttled phone profile, and the breakdown in PageSpeed Insights, the teak bench page splits like this (invented numbers):
| Part | Time | Share of LCP |
|---|---|---|
| Time to first byte | 1.2 s | 29% |
| Resource load delay | 1.3 s | 32% |
| Resource load duration | 1.2 s | 29% |
| Element render delay | 0.4 s | 10% |
| Total | 4.1 s | 100% |
The load delay alone is 32%, more than three times Google's rough guide of under 10%. Three causes sit behind the numbers:
- The hero photo sits inside a JavaScript gallery and carries
loading="lazy"from a theme default. The browser only finds it after the gallery script has run. - The photo is a 2,400 pixel wide JPEG of 1.4 MB, sent to every phone.
- Every product page is built fresh on the server for every visit, with no cached copy of the HTML, which is why the first byte takes 1.2 seconds.
Fix 1: the main image, found early and sized for the screen
The biggest win for the least work on most shop pages is the LCP image. Google's guide to optimising LCP is blunt: never lazy load the LCP image.12 It gives four rules that together remove most of the waste.
Make the image discoverable in the HTML. The browser has a preload scanner that reads ahead in the HTML and starts downloads early. An image that only appears once a script runs, or that sits in a CSS background or a data-src attribute for a lazy loading library, is invisible to it.12 The hero photo belongs in a plain <img> element in the HTML the server sends.
Do not lazy load it. Lazy loading is excellent for images further down the page, and harmful for the one in the first screen. Google's guide on browser lazy loading says not to lazy load images that are likely to be in the viewport when the page loads, "especially LCP images".13 An earlier analysis of HTTP Archive data found that websites using lazy loading tend to have worse LCP, largely because they lazy load too much.14
Give it a high fetch priority. The fetchpriority="high" attribute tells the browser that this image matters more than its default guess. In Google's own test on Google Flights, it improved LCP from 2.6 to 1.9 seconds.15 At the time of writing Chrome, Edge, Safari and Firefox all support it.15 Google also warns that setting high priority on more than one or two images makes it useless.12
Send the right size in a modern format. A responsive image lists several widths with srcset and tells the browser how wide the image will be shown with sizes, so a phone downloads a phone sized file.16 The <picture> element lets you offer AVIF and WebP with a JPEG fallback. Mozilla's documentation puts lossy AVIF at around 50% smaller than JPEG and lossy WebP at 25% to 35% smaller, at similar visual quality.17 Always set width and height so the browser reserves the space.13
Here is the markup for a hero image that follows all four rules:
<!-- In the HTML the server sends, not injected by a script -->
<picture>
<source type="image/avif"
srcset="/img/teak-bench-640.avif 640w, /img/teak-bench-1280.avif 1280w"
sizes="(max-width: 768px) 100vw, 640px">
<source type="image/webp"
srcset="/img/teak-bench-640.webp 640w, /img/teak-bench-1280.webp 1280w"
sizes="(max-width: 768px) 100vw, 640px">
<img src="/img/teak-bench-1280.jpg"
width="1280" height="960"
fetchpriority="high"
alt="Three seater teak garden bench on a stone patio">
<!-- no loading="lazy" here: this is the LCP image -->
</picture>
Every other product photo further down the page, the gallery thumbnails and the "you may also like" row, keeps loading="lazy" and its own width and height.
Example: the teak bench photo
Tom's developer takes the first gallery photo out of the gallery script and writes it straight into the product template as a plain <picture> element, without lazy loading and with fetchpriority="high". The gallery script still runs, but only for the other photos. In the lab this cuts the load delay from 1.3 to about 0.3 seconds: the browser now starts the download as soon as it reads the HTML.
Next, the image service generates 640 and 1,280 pixel versions in AVIF and WebP. On a phone the browser now picks a 640 pixel AVIF of about 70 KB instead of the 1.4 MB JPEG, a file roughly 20 times smaller. The download falls from 1.2 to about 0.5 seconds in the lab.
Together the two changes take about 1.7 seconds out of 4.1. The same template change applies to the category pages, which use the first product image of the grid as their LCP element.
Fix 2: fonts that do not hold up the text
Web fonts are files the browser has to download before it can draw text in that typeface. Until they arrive, the browser either hides the text or shows a fallback font and swaps later. Both cost something.
Google's guide to fonts gives the practical rules:18
- Use WOFF2 only. It compresses around 30% better than the older WOFF format and every current browser supports it.
- Subset the font, so it carries only the characters you use. A Latin font has hundreds of glyphs, most of which a British shop never shows.
- If you load fonts from another domain, connect to it early with a
preconnecthint. Self hosting helps only if you also serve the files well, from a content delivery network (CDN) over HTTP/2, so measure rather than assume. - Preload the one or two fonts that appear in the first screen, no more.
- Choose
font-displaydeliberately.optionalis the best for performance and never causes a swap, but the font may be skipped on a slow first visit.swapshows text at once but can make it jump when the font arrives. The guide suggestsswapfor branding andoptionalfor body text. - Replace icon fonts with SVG icons, because their fallback looks nothing like them and causes shifts.
The CSS size-adjust descriptor can make a fallback font take up the same space as the web font, which removes most of the swap shift.18
/* Body text: never block, never shift */
@font-face {
font-family: "Ashby Sans";
src: url("/fonts/ashby-sans-latin.woff2") format("woff2");
font-display: optional;
}
/* A fallback sized to match, so a late swap does not move the text */
@font-face {
font-family: "Ashby Fallback";
src: local("Arial");
size-adjust: 104%;
}
body { font-family: "Ashby Sans", "Ashby Fallback", sans-serif; }
The exact size-adjust value depends on the two fonts and is measured, not guessed.
Example: two fonts, four files
Ashby Outdoor loads two typefaces from a font service: a display face in two weights for headings and a sans serif in two weights for text. That is four files from another domain, with no preconnect, and an icon font for the basket and search icons on top.
Tom's developer self hosts the two text weights as subsetted WOFF2 files on the shop's CDN, preloads the heading weight used in the product title, sets optional for the body text and replaces the icon font with three inline SVG icons. In the lab the render delay drops by about 0.1 seconds, and one of the layout shifts disappears, which matters later for CLS.
Fix 3: third party scripts, the slow tax nobody budgets for
A third party script is code your page loads from someone else's server: a tag manager, analytics, a chat widget, a reviews widget, a finance calculator, a consent tool, advertising pixels. Each one is small on its own. Together they are often the main reason a shop feels slow when someone taps.
Every script competes for the browser's main thread, the single lane where it runs JavaScript, works out the layout and paints the screen. While a script runs, a tap waits. That is why third party scripts show up in INP more than in LCP.
The guidance from Google is consistent across its documents:
- Load third party scripts with
asyncordefer, unless the script is needed to draw the page, and remove any that do not add clear value.19 - In a tag manager, pause or remove unused tags rather than blocking them with a trigger exception, fire tags that are not essential after the window has loaded, load large libraries as external files rather than pasting them into Custom HTML tags, and never use the tag manager for things the visitor sees at once, such as the hero image.20
- For heavy embeds such as chat widgets and video players, use a facade: a static lookalike that loads the real widget only when someone interacts with it. Lighthouse names live chat tools such as Intercom, Drift, Help Scout and Facebook Messenger among the candidates, and notes the trade off that a facade loses some features, such as an unread message badge, until the real widget loads.21
Consent tools deserve their own paragraph because every shop in the UK and the EU has one. Google's guide to cookie notices calls them a very common source of layout shifts, notes that on mobile a large notice can even become the LCP element, and points out that clicking "Accept" often starts many scripts at once, which hurts INP.22 Its advice: load the consent script directly in the HTML with async rather than through a tag manager, show the notice as an overlay or a footer bar so it does not push content, and ask the vendor to yield to the browser after the "Accept" click.22
There is a second reason to be strict here, beyond speed. A consent setup that holds analytics and marketing scripts back until the visitor agrees also holds back their cost on the first screen. On my own site, front end analytics only run after consent. How to keep measuring well under consent is covered in event tracking and consent mode.
Example: 23 tags and a chat bubble
Tom's tag manager container holds 23 tags. An audit finds seven that nobody can explain: two old advertising pixels, a heatmap tool from a trial two years ago, duplicate analytics loaded both in the template and in the container, and three Custom HTML tags pasting whole libraries inline. A chat widget and a reviews widget both load their full scripts on every product page, before anyone scrolls.
The fixes, in the order Tom's developer does them:
- Remove the seven unused tags and their triggers, and pause the duplicate analytics in the container.
- Move the two remaining Custom HTML libraries to external files.
- Change the remaining marketing tags to fire after the window has loaded, which they already only do after consent.
- Replace the chat widget with a facade: a static chat button that loads the real widget when tapped.
- Load the reviews widget only when the reviews section comes close to the screen.
- Load the consent tool directly in the HTML with
async, as a bar at the foot of the screen.
The effect on LCP is small, about 0.1 seconds less render delay. The effect on INP is the real prize, and it comes in the section on JavaScript.
Fix 4: server response and caching
Every other step waits for the first byte. Google's guide to TTFB says most sites should aim for 0.8 seconds or less, and treats over 1.8 seconds as poor.23 TTFB is not a Core Web Vital, but it sits inside LCP, so a slow server is a slow LCP.
Google's list of causes and fixes for a slow first byte:23
- Hosting with too little capacity. Shared hosting under load is slow. Make sure the server has the memory and processing power for your peak, which for a garden shop is a sunny Saturday in May.
- Slow work on the server. Database queries, building the page from templates, calls to other systems. Measure each step, for example with a
Server-Timingheader, before guessing. - No cache. If the same product page is built from scratch on every visit, a cached copy served in milliseconds is the biggest gain. A content delivery network keeps copies close to the visitor.
- Redirects. Every redirect is another round trip. Link straight to the final address, with the right protocol and trailing slash.
- Early hints. A
103 Early Hintsresponse lets the browser start fetching critical files while the server is still working on the page.
HTTP caching is governed by a published standard, RFC 9111, which defines how Cache-Control tells browsers and shared caches such as a CDN what they may store and for how long.24 A sensible starting point for a shop looks like this:
# Product and category pages: shared caches may keep a copy for 5 minutes
# and serve a stale copy for up to an hour while they fetch a fresh one
Cache-Control: public, max-age=0, s-maxage=300, stale-while-revalidate=3600
# Versioned images, fonts, CSS and JavaScript: cache for a year
Cache-Control: public, max-age=31536000, immutable
# Basket, checkout and account pages: never store
Cache-Control: no-store
no-store belongs only on pages with personal data, for a reason beyond privacy. Browsers keep recently left pages in the back/forward cache, so pressing "back" restores them instantly. Chrome's data shows that one in ten navigations on desktop and one in five on mobile are back or forward.25 Pages sent with Cache-Control: no-store, or with an unload event handler, have historically been excluded from that cache.25 The Web Almanac 2024 found no-store on about 21% of sites.11 On a shop where people go from a category to a product and back again, all day long, that is free speed thrown away.
My view: on a shop, caching the HTML of product and category pages is usually the largest single server fix, and it is the one most often missing on older platforms. If stock or prices change by the minute, a short shared cache with revalidation still takes most of the load off the server.
Example: 1.2 seconds to the first byte
Ashby's old platform builds every product page on every visit, runs 140 database queries for the teak bench page and sends it with Cache-Control: no-store everywhere, a default nobody changed. Category links also go through a redirect from addresses without a trailing slash.
Tom's developer puts a CDN in front of the shop with a five minute shared cache for product and category pages, purged whenever a price or stock level changes, keeps no-store only on basket, checkout and account, and fixes the internal links so they point straight at the final addresses. In the lab TTFB falls from 1.2 to about 0.6 seconds on a cache hit. The back button from product to category now restores the page instantly, which no Core Web Vital measures and every visitor notices.
A full move to a modern platform is a bigger decision. The relaunch chapter later in this series covers how to do it without losing search traffic, and if a rebuild is on the table, I build online shops on Solidus, where caching is designed in from the start.
Fix 5: JavaScript and the main thread, for faster taps
INP is about what happens after the page has loaded. A tap on "add to basket", a filter or a colour swatch has to wait if the main thread is busy. Google defines a long task as any task on the main thread that runs longer than 50 milliseconds, and the main thread can only do one task at a time.26
Three things make long tasks:
- Too much JavaScript on the page. Every script has to be downloaded, parsed and run. Splitting the code so each page only loads what it needs, and removing libraries nobody uses, reduces the work before any tap.
- Third party scripts. Covered above. They are often the biggest share.
- Your own handlers doing too much at once. A filter that recalculates the whole product grid, updates the address bar, sends three analytics events and redraws the page in one go blocks the thread for all of it.
Google's guidance is to break long tasks up and yield to the main thread, so the browser can paint the visible response first and do the rest afterwards.26 The scheduler.yield() function does that, and at the time of writing it is supported in Chromium browsers, so the guide recommends a fallback with setTimeout for the others.26
// Yield to the browser, with a fallback where scheduler.yield is missing
function yieldToMain() {
if (globalThis.scheduler?.yield) return scheduler.yield();
return new Promise((resolve) => setTimeout(resolve, 0));
}
async function onFilterChange(filter) {
showLoadingState(filter); // the visible answer to the tap, painted first
await yieldToMain();
updateProductGrid(filter); // the heavy work, after the paint
await yieldToMain();
sendAnalyticsEvent(filter); // nobody waits for this
}
The JavaScript chapter of this series explains how client side rendering affects indexing. The same scripts often affect INP, so the two chapters belong together.
Example: 310 milliseconds for a colour swatch
On the product page, the slowest common interaction is tapping a colour swatch on the teak bench, which swaps the photo and the price. At the 75th percentile on mobile, INP is 310 milliseconds. A recording in the performance panel shows why: the tap arrives while the chat widget and the reviews widget are still running their start up code, so most of the time is input delay, waiting for the main thread to become free.
After the third party fixes from the previous section, the main thread is mostly idle by the time anyone taps. The developer also splits the swatch handler, so it paints the new photo first and sends the analytics event afterwards. On the category pages, the client side filter from the JavaScript chapter gets the same treatment. In the lab, the slowest swatch tap falls to about 150 milliseconds.
Fix 6: banners that make the page jump
Layout shifts happen when something appears late and pushes the rest of the page down. Google's guide to CLS names the usual suspects: images without dimensions, ads, embeds and iframes without dimensions, content injected late, and web fonts.27 On shops, the most common late arrivals are promotion bars, "pay later" messages under the price, review stars and cookie notices.
The fixes are all about reserving space before the content arrives:27
- Give every image and video
widthandheightattributes, or a CSSaspect-ratio, so the browser knows the box before the file arrives. - Reserve a fixed height for any banner or message that loads later, in the HTML the server sends.
- Put late, optional content below the first screen, or show it as an overlay that does not push content.
- Use
transformfor animations rather than properties that change the layout.
Each shift gets a score: the share of the screen affected multiplied by how far the content moved. CLS adds up the scores in the worst burst of shifts during the visit.27 My earlier article explains the exact windowing rules. For the example, the multiplication is enough.
Here is the score of one layout shift, the impact fraction (the share of the screen covered by the moving content, before and after the move combined) and the distance fraction (how far it moved, as a share of the screen's longer side). Foundations: ratios and rates.
Example: three shifts that add up to 0.19
On the teak bench page on a phone, three things move the content in the same burst, with invented values:
- A free delivery bar loads at the top from the tag manager and pushes everything down. It affects 70% of the screen and moves the content by 12% of the screen height.
Here is the score of the first shift, with and .
- A "pay later" message appears under the price and pushes down the button and the photo of the bench below it.
Here is the score of the second shift, with and .
- The heading font swaps in and the title wraps onto a second line, which nudges the content again by a score of 0.04.
The burst totals , which rounds to the 0.19 in Tom's field data. The fixes: the delivery bar moves out of the tag manager into the page template with its height reserved, the "pay later" message gets a fixed slot of one line under the price, and the font changes from Fix 2 remove the third shift. In the lab, the page now scores about 0.03.
What to fix first: an order you can defend
With the six fixes on the table, the order is the real decision. I use two rules.
Rule one: fix what fails, on the pages that matter. Start with the template that brings the most organic landings and fails a Core Web Vital on mobile. A failing metric goes on the list whatever its score below.
Rule two: within that, rank by value per day of work. For the LCP work, where several fixes compete, I estimate a simple priority score:
Here is the priority score, the estimated reduction in LCP at the 75th percentile on mobile in seconds, from a lab test, the share of organic landing sessions on the templates the fix affects, and the estimated days of work. A higher comes first. Foundations: ratios and rates.
The score is a tool for ordering, not a forecast. The lab estimates of are rough, and fixes overlap: once the image arrives early, the server time becomes a larger share of what is left.
Example: Tom's scored list
Ashby's organic landings split, in invented numbers, as product pages 46%, category pages 38%, guides 10% and other pages 6%. The product and category templates together take 84%, and both fail on mobile. These are the LCP fixes with their lab estimates:
| Fix | (s) | (days) | ||
|---|---|---|---|---|
| Hero image in the HTML, not lazy, high priority | 1.0 | 0.84 | 1 | 0.84 |
| Responsive AVIF and WebP images | 0.7 | 0.94 | 3 | 0.22 |
Fonts: subset, self hosted, optional | 0.1 | 1.00 | 0.5 | 0.20 |
| HTML caching, CDN, no redirects | 0.6 | 1.00 | 4 | 0.15 |
| Third party clean up | 0.1 | 1.00 | 2 | 0.05 |
The first row, worked through: . The image change wins by a distance because it is one day of template work with a large saving on 84% of landings.
The third party clean up scores lowest for LCP, but it is the main fix for INP, which also fails. By rule one it stays on the list and runs in parallel. The same goes for the CLS work on the banners, which takes about a day.
Tom's order: the hero image first, then the image formats and the fonts together, then caching, with the third party clean up and the banner slots running alongside.
The result, and how to check it honestly
Lab estimates add up neatly. Real visitors do not. Here are Tom's lab savings on the mobile product page, one fix at a time:
Then comes the step most people skip: waiting for the field data. CrUX is a rolling 28 day window, so a fix shipped today only fully shows in PageSpeed Insights four weeks later.8 The Search Console validation runs over the same 28 days.9 If you collect the three metrics from real visits yourself, with consent, you see the trend sooner.
Reading sales after a speed project needs the same care. Ashby's sessions swing from 14,000 to 38,000 between January and May, so a before and after comparison of two months tells you about the weather, not about speed. Better comparisons:
- The same months a year earlier, adjusted for any change in traffic.
- The conversion rate of the fixed templates against templates that were not changed.
- For a large shop, a proper split test, with enough traffic to read it. Speed is only one source of friction, and the Clarity Framework covers the others: copy, flow and forms.
Example: four weeks later
Twenty eight days after the last fix, the field data for Ashby's product page group on mobile, at the 75th percentile, reads (invented):
| Metric | Before | After | Good threshold |
|---|---|---|---|
| LCP | 4.1 s | 1.8 s | 2.5 s |
| INP | 310 ms | 170 ms | 200 ms |
| CLS | 0.19 | 0.04 | 0.1 |
All three are now good. The field LCP of 1.8 seconds is slower than the lab's 1.6, which is normal: real phones and networks are more varied than one emulated profile, and not every visit hits the cache.
Tom does not claim a conversion lift from it. He compares the organic conversion rate on product pages from June to August with the same months of the previous year, and with his guides, which were already fast. He needs a relative lift of 0.70% to cover the £6,000, and he reads the result with that bar in mind, and with the honesty to say "too early to tell" if the data says so.
Where speed projects usually go wrong
Most failed speed projects fail in predictable ways:
- Chasing the Lighthouse score. A desktop 95 in the lab says nothing about phones in the field. Google ranks on field data, and customers buy on it.
- Optimising the home page. Organic visitors to a shop land mostly on product and category pages. Start where they land.
- Lazy loading everything. It is the right default below the first screen and the wrong one for the main image.
- Adding a speed plugin on top of a slow theme. Some plugins help. Many add their own script to fix the damage done by others. Remove first, add second.
- Fixing everything in one release. Nobody then knows which change helped and which broke the gallery on Safari.
- Forgetting the tag manager. Containers grow for years, and nobody owns them. Google's guidance is to audit tags regularly and give each one an owner.20
- Judging after a week. The field data needs 28 days.
The technical audit chapter at the end of this series puts speed checks alongside crawling, indexing and duplicates in one checklist.
Conclusion: fix speed for the people who arrived
Speed is a modest ranking factor and a real business lever. Google uses the Core Web Vitals in ranking, but relevance comes first and no score guarantees a position. The evidence on sales points clearly in one direction, and its size will not transfer to your shop, which is why the break even lift is the number that decides.
Look at field data first, mobile first, on the templates where organic visitors land. Then fix in order of value: the main image, the server, the fonts, the third party scripts, the JavaScript behind slow taps and the banners that move the page. Ship one change at a time, wait 28 days, and read the result with the season in mind.
If you would like a second pair of eyes on your own field data, I run a free workshop where we go through your templates and put the fixes in order together, and the first two weeks of work are on me. My prices are published in full, so you know what any of it would cost before we talk.
