SlideShare a Scribd company logo
Crucial metrics to quantify web performance.
Demystifying Web Vitals
By @samarpanda
● Overview of user journey
● Quantify performance
● Synthetic(Lab) & Real User Measurement (RUM)
● Web vital metrics
● How to measure?
● Explore Tools
● Steps to improve
● Demos with devtools & webpagetest
Agenda
After typing an URL in the browser
source: medium.com/@lokeshchinni123
Rails is user-centric performance model
User's perceived performance
source: web.dev/rail/
The pixel pipeline & Flame chart
60 frames per second
1 frame 1000/60 = 16.66 ms
Is it useful?Is it happening?
bit.ly/reddit-wpt
Is it delightful?Is it usable?
bit.ly/reddit-wpt
Loading is a journey
First Paint First Contentful Paint
Time To Interactive
Largest contentful Paint
Navigation start
Navigation Timing
Application Round Trip Time (RTT)
Dissecting one of the requests
Browser API's - Demo
Navigation Timing Paint Timing User Timing
User timing API
Demo - https://odd-jumbo.glitch.me/
How metrics are measured?
Synthetic lab conditions In the field (Real User Measurement)
Httparchive state of the web
httparchive.org/reports
Web Vitals
performance
Largest contentful paint(LCP)
Time taken to render the largest text block or
image element within the viewport
Focuses on perceived load when the main
content has likely loaded
source: addyosmani.com/blog/web-vitals-extension/
const po = new PerformanceObserver(list => {
let entries = list.getEntries();
const lastEntry = entries[entries.length - 1];
console.log(`LCP is: ${lastEntry.startTime}`);
// LCP is: 167.1499
});
po.observe({type: 'largest-contentful-paint', buffered: true});
How to measure LCP?
bit.ly/measurelcp
What if the target element isn't the most important?
In LCP we are deriving the target element
with a rule of "largest" element rendered on
the page.
What if as per our product in a specific page
that is not the crucial element how do we
measure then?
Fallback -⚡DOM Element Timing API ⚡
What affects LCP?
● Slow server response time
● Render blocking JS & CSS
● Resource load times
● client-side rendering
How to improve LCP?
● Optimizing critical rendering path
● Apply instant loading with PRPL pattern
● Optimize Images
● Optimize web fonts
● Optimize CSS
● Optimize web fonts
● Optimize javascript
Demo - verdant-kiwi-kale.glitch.me
https://verdant-kiwi-kale.glitch.me/
Cumulative layout shift(CLS)
source: addyosmani.com/blog/web-vitals-extension/
WPT Filmstrip comparison
Demystifying Web Vitals
How to measure CLS?
bit.ly/measurecls
const po = new PerformanceObserver(list => {
for (const entry of list.getEntries()){
console.log(entry);
}
});
po.observe({type: 'layout-shift', buffered: true});
● CLS keeps updating till the unload of the page
● The cumulative part of the entry gives the total layout shift happened in a page
● CLS needs to be beaconed after the page changes to hidden
bit.ly/measurecls
How to improve CLS metric?
● Image size attributes
● Avoid adding content over existing content
● Prefer transform animations to animate
CLS demo using chrome devtools
bit.ly/bb-perf-01
First Input Delay
Measures the time from when a user first
interacts with the site to the time when the
browser actually able to respond to that
interaction.
Measure visual stability and quantifies the
amount of unexpected layout shift of visible
page content.
source: addyosmani.com/blog/web-vitals-extension/
Show first input delay(FID)
source: youtube.com/watch?v=Lx1cYJAVnzA
Network requests & Main thread activities
Source - addyosmani.com/blog/usability/
Time To Interactive (Lab data)
Source - addyosmani.com/blog/usability/
Source - addyosmani.com/blog/usability/
import {getCLS, getFID, getLCP} from 'web-vitals';
getCLS(console.log);
getFID(console.log);
getLCP(console.log);
How to measure all 3 metrics?
bit.ly/measurelcp
Use npm package - web-vitals
npm install web-vitals
Webpagetest results - 01 bit.ly/3hTjYcS
Webpagetest results -02 - bit.ly/37X2WGk
Web Vitals
performance
Tools
Google search console
Site owners can get field data
from this console referring to
exact urls split by web vitals
Pagespeed Insights
Field data is powered by Chrome User
experience report.
Lab data
Chrome devtools Lighthouse
Webpagetest showing web vitals
source: web.dev/vitals-tools/
tl;dr
1. Build & Iterate & improve web vital metrics
2. Deploy and collect web vital metrics to verify improvements
3. Tune your lab against RUM data
+ optimize locally()
+ goto(1)
4. Keep measuring the key metrics & keep improving
Thanks!
@samarpanda www.samarpanda.com

More Related Content

PPTX
Web vitals
PPTX
Core web Vitals: Web Performance and Usability
PDF
Core Web Vitals - The Modern Web Experience
PPTX
Google Core Web Vitals - Webinar
PDF
Improving user experience with real user measurements
PDF
Core Web Vitals: Google New Ranking Factor
PPTX
Steve Bailey — Core Web Vitals & Roadblocks to Success
PDF
Google Core Web Vitals & Roadblocks to Success
Web vitals
Core web Vitals: Web Performance and Usability
Core Web Vitals - The Modern Web Experience
Google Core Web Vitals - Webinar
Improving user experience with real user measurements
Core Web Vitals: Google New Ranking Factor
Steve Bailey — Core Web Vitals & Roadblocks to Success
Google Core Web Vitals & Roadblocks to Success

What's hot (20)

PDF
Core web vitals – Business impact and best practices - Meet Magento UK 2021
PPTX
Measuring Front-End Performance - What, When and How?
PDF
Not my RUM: Benchmarking the web for fun and profit with the Chrome UX Report
PDF
Google at WordCamp US: Performance IS User Experience
PDF
Mobile WebDriver Selendroid
PPTX
Core web vitals is the thing you should focus on if you own a website in 2021
PPT
Building RIA - Comparison between Adobe Flex and GWT - Hu Shunjie
PPTX
Gatsby v2: Faster build times, guess.js, and more!
ODP
Synthetic web performance testing with Selenium
PDF
Web performance testing with web driver
PDF
Polymer
PDF
redirect Giraffe presentation #4
PPTX
Cdn optimizely and how latency affects load speed
PPTX
A Modern Approach to Performance Monitoring
PDF
Client side production monitoring using - SyncApp Tool
PPTX
Better Content Presentation
PPTX
Better content presentation
PPTX
Web performance Speed matters
PDF
Hands on Ruby on Rails
PDF
React vs angular (mobile first battle)
Core web vitals – Business impact and best practices - Meet Magento UK 2021
Measuring Front-End Performance - What, When and How?
Not my RUM: Benchmarking the web for fun and profit with the Chrome UX Report
Google at WordCamp US: Performance IS User Experience
Mobile WebDriver Selendroid
Core web vitals is the thing you should focus on if you own a website in 2021
Building RIA - Comparison between Adobe Flex and GWT - Hu Shunjie
Gatsby v2: Faster build times, guess.js, and more!
Synthetic web performance testing with Selenium
Web performance testing with web driver
Polymer
redirect Giraffe presentation #4
Cdn optimizely and how latency affects load speed
A Modern Approach to Performance Monitoring
Client side production monitoring using - SyncApp Tool
Better Content Presentation
Better content presentation
Web performance Speed matters
Hands on Ruby on Rails
React vs angular (mobile first battle)
Ad

Similar to Demystifying Web Vitals (20)

PPTX
Measuring User on the web with the core web vitals - by @theafolayan.pptx
PPTX
Web Vitals.pptx
PPTX
An Introduction to Pagespeed Optimisation
PPTX
Conquer User Attention: Master Core Web Vitals for a Flawless User Experience
PPTX
New Ranking Metrics by Google
PDF
Introduction core web vitals
PDF
Introduction core web vitals
PPTX
Rachel Costello — The Landscape of Site Speed and Web Vitals
PPTX
2020 Chrome Dev Summit: Web Performance 101
PDF
Digital Marketing Course | Importance of core web vitals
PDF
Demystifying web performance tooling and metrics
PPTX
Supercharge Your Site:Mastering Core Web Vitals: Elevating Your Website's Use...
PDF
Core Web Vitals in Website Design.pdf
PPTX
Core Web Vitals & Google Page Experience por Seo Martin
PPTX
Core Web Vitals & Google Page Experience por Seo Martin
PDF
Web.dev extended : What's new in Web [GDG Taichung]
PPTX
Measuring web performance with user-centric metrics
ODP
Cvcc performance tuning
PPTX
Hariharan M meriity online marketing internship project
Measuring User on the web with the core web vitals - by @theafolayan.pptx
Web Vitals.pptx
An Introduction to Pagespeed Optimisation
Conquer User Attention: Master Core Web Vitals for a Flawless User Experience
New Ranking Metrics by Google
Introduction core web vitals
Introduction core web vitals
Rachel Costello — The Landscape of Site Speed and Web Vitals
2020 Chrome Dev Summit: Web Performance 101
Digital Marketing Course | Importance of core web vitals
Demystifying web performance tooling and metrics
Supercharge Your Site:Mastering Core Web Vitals: Elevating Your Website's Use...
Core Web Vitals in Website Design.pdf
Core Web Vitals & Google Page Experience por Seo Martin
Core Web Vitals & Google Page Experience por Seo Martin
Web.dev extended : What's new in Web [GDG Taichung]
Measuring web performance with user-centric metrics
Cvcc performance tuning
Hariharan M meriity online marketing internship project
Ad

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Spectroscopy.pptx food analysis technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Programs and apps: productivity, graphics, security and other tools
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
sap open course for s4hana steps from ECC to s4
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectroscopy.pptx food analysis technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Demystifying Web Vitals