---
title: "The Vitality of Core Web Vitals"
description: "Core Web Vitals, which became a Google Search ranking factor in mid-2021, consist of three metrics: Largest Contentful Paint (good at 2.5s or less), First Input Delay (good at 100ms or less) and Cumulative Layout Shift (good at 0.1 or less)."
url: "https://swe.quest/articles/the-vitality-of-core-web-vitals-16368f8232841fdf"
canonical: "https://shopify.engineering/core-web-vitals"
source: "Shopify Engineering"
published: "2021-11-04"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 13
tags: ["web-performance","frontend","browsers"]
---

# The Vitality of Core Web Vitals

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-11-04, 13 min read, Deep dive. Original: [https://shopify.engineering/core-web-vitals](https://shopify.engineering/core-web-vitals)

## Summary

Core Web Vitals, which became a Google Search ranking factor in mid-2021, consist of three metrics: Largest Contentful Paint (good at 2.5s or less), First Input Delay (good at 100ms or less) and Cumulative Layout Shift (good at 0.1 or less). Each is defined precisely: which elements count as LCP candidates, why FID measures only input delay and not handler time, and how a layout shift score is computed as impact fraction times distance fraction. Measurement can happen in the lab (Lighthouse, WebPageTest, the Web Vitals extension, with Total Blocking Time standing in for FID) or in the field (CrUX-based tools and RUM). Suggested fixes include trimming and tree-shaking third-party libraries, which cut Oberlo's bundle by 23%, and preloading critical assets, where preloading fonts improved Shopify's text paint by 1.2 seconds.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- browser rendering basics
- JavaScript main thread ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Core Web Vitals, Largest Contentful Paint, First Input Delay, Cumulative Layout Shift, Lighthouse, WebPageTest, Chrome UX Report, PageSpeed Insights

## Related posts

- [Measuring soft navigation web vitals](https://swe.quest/articles/measuring-soft-navigation-web-vitals-5224b6d18d5f5088.md): Sentry · 2026-10-29 · Medium · 9 min read · Web performance, Observability, Frontend, Browsers
  Chrome (Chromium 151+) now reports web vitals for soft navigations, and Sentry's JavaScript SDK v11 attaches per-navigation LCP, CLS and INP to SPA \`navigation\` spans by default, using span streaming because vitals finalize after the span ends.
- [New to the web platform in June](https://swe.quest/articles/new-to-the-web-platform-in-june-7816d4d94fd092d9.md): web.dev · 2026-06-30 · Easy · 4 min read · Browsers, CSS, Frontend, Accessibility
  Chrome 149, Chrome 150 and Firefox 152 reached stable in June 2026.
- [Rendering huge pull requests in the GitHub Copilot app](https://swe.quest/articles/rendering-huge-pull-requests-in-the-github-copilot-app-dfdd1afcfdc347d9.md): GitHub Engineering · 2026-09-23 · Medium · 13 min read · Frontend, Web performance, Performance engineering, Testing, Observability
  The GitHub Copilot app's pull request view stays responsive on a 2,200-file, million-line diff with 400+ review comments by splitting document height into two geometries: exact, precomputed prefix-summed code rows and lazily measured dynamic blocks for comments, drafts and composers.
- [Optimizing WebKit & Safari for Speedometer 3.0](https://swe.quest/articles/optimizing-webkit-safari-for-speedometer-3-0-a9a8d1c62cb906f4.md): WebKit · 2024-04-10 · Hard · 11 min read · Browsers, Web performance, Runtimes & VMs, Memory management, Performance engineering
  WebKit's Speedometer 3.0 work spans JavaScriptCore, DOM, style, layout, rendering and Safari itself, with measured gains for each change.
- [Performance Testing At Scale—for BFCM and Beyond](https://swe.quest/articles/performance-testing-at-scale-for-bfcm-and-beyond-2d2b72564f475785.md): Shopify Engineering · 2023-01-27 · Medium · 15 min read · Capacity planning, Performance engineering, Testing, Scaling, E-commerce
  Shopify prepares for Black Friday Cyber Monday by repeatedly running full-scale load tests against production: scaling Shopify Core and dependencies (nginx routing, ProxySQL, key/value store) to their BFCM profile, layering five Cronograma-driven traffic flows (browse/buy, admin, flash sale, Storefront API, Hydrogen/Oxygen) with an abort switch, then scaling down in reverse order and running blameless retrospectives.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
