Professional Documents
Culture Documents
CWV Workshop 1 Slides
CWV Workshop 1 Slides
Publishers
Workshop
Part I
Feb 23rd 2022
Confidential + Proprietary
A few reminders
Use the blue “Ask a At the end of the event, At the end of the event,
question” button to you’ll see a feedback there will be provided an
submit questions. form appear and you’ll exercise on CWV that will
also receive an email, be reviewed and
share your feedback with discussed during the
us. second workshop.
Confidential + Proprietary
Speakers
Confidential + Proprietary
Agenda
Best Practices
Case Studies
Measuring CWV
Homework :D
Q&A
Confidential + Proprietary
Core Web Vitals overview
Confidential + Proprietary
Core Web Vitals
User-centric performance metrics
To ensure you're hitting this target for most of your users, a good
threshold to measure is the 75th percentile of page loads,
segmented across mobile and desktop devices.
Confidential + Proprietary
Quiz time
A. After 10 seconds
Confidential + Proprietary
Quiz time
A. After 10 seconds
Confidential + Proprietary
LCP
Largest Contentful Paint
NEEDS
GOOD POOR
IMPROVEMENT
web.dev/lcp
Confidential + Proprietary
Quiz time
D. It doesn’t matter
Confidential + Proprietary
Quiz time
D. It doesn’t matter
Confidential + Proprietary
CLS
Cumulative Layout Shift
NEEDS
GOOD POOR
IMPROVEMENT
0.1 0.25
100 ms 300 ms
web.dev/fid
Confidential + Proprietary
Quiz time
A. True
B. False
Confidential + Proprietary
Quiz time
A. True
B. False
Confidential + Proprietary
Possible new metrics:
Responsiveness and Smoothness
Confidential + Proprietary
User perception of responsiveness
All users have experienced the frustration
trying to interact with a web page, whether
Is it responsive? through swipe, scroll, or tap, but nothing
happens for a while
contentbazaar.co/20160314/pi-way
In a study of user perception of mobile
touchscreen interactions, users'
Lorem ipsum dolor sit amet, consectetur perception of simultaneity between input
adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut and response drops off steeply with delays
enim ad minim veniam, quis nostrud
exercitation ullamco
over 85ms
Confidential + Proprietary
Towards a better responsiveness metric
●
Measures interactions rather than
events, i.e. keydown > keyup > paint
Considers and aggregates all
BRM?
interactions on a page, not just the first
interaction Learn more and give feedback at:
web.dev/responsiveness
Confidential + Proprietary
Accounting for smoothness
Confidential + Proprietary
Best Practices
Confidential + Proprietary
What causes poor LCP?
● Reserve space
○ Non-essential only
Confidential + Proprietary
Improving CLS at Telegraph Media Group
> 250%
● Reserved ad space by using the 75th percentile CLS improvement
most common advert size
loaded in the slot
18% increase in advertising revenues | 27% increase in page views | 74% ad viewability
CLS
● “Sticky” top ad
18% increase in advertising revenues | 27% increase in page views | 74% ad viewability
FID
18% increase in advertising revenues | 27% increase in page views | 74% ad viewability
LCP
● prioritized the above the fold hero images and fonts and optimized the
critical path to take precedence over advertising scripts and adverts
● Separated CSS for critical rendering path and put it in the header
● Used font-display="swap"
Confidential + Proprietary
Measuring CWV
Confidential + Proprietary
Data - lab vs field
vs
● Try to follow along, but don’t stress, we will share the deck
afterwards
● Going to go over using some Google tools, won’t cover all of them
Confidential + Proprietary
CrUX dashboard
Go to g.co/chromeuxdash
First-time users may need to complete
permission or marketing preference prompts
Click “Connect”
If your origin is not included in the CrUX
dataset, you may get an error message
Confidential + Proprietary
CrUX dashboard
Confidential + Proprietary
PageSpeed Insights
Go to pagespeed.web.dev
Enter a URL
Click “Analyze”
● Mobile vs Desktop
● URL vs Origin
On origin, should be
similar to CrUX dashboard
Confidential + Proprietary
PageSpeed Insights
Lab data
● Mobile vs Desktop
● Specific URL only
● Network throttling and
emulated device
● Different metrics vs field
● Opportunities + diagnostics
Confidential + Proprietary
Quick Question
1. Not at all
2. A little bit
3. Quite surprised
Confidential + Proprietary
Chrome DevTools
Go to DevTools
Mac: Command+Option+I
Other: Control+Shift+I
Confidential + Proprietary
Chrome DevTools
Confidential + Proprietary
Chrome DevTools
Confidential + Proprietary
Chrome DevTools
Confidential + Proprietary
Chrome DevTools
Confidential + Proprietary
Lighthouse in DevTools
Great for debugging locally
Exposes LCP in the Performance timeline as well as CLS and TBT when
Performance Timeline running a performance trace.
Provides an origin-level report for all CWV across country, device, and
CrUX connection type dimensions. Available via BigQuery and the CrUX API.
Confidential + Proprietary
web.dev/vitals-tools
Tools That Measure Core Web Vitals (continued)
Overview of Google Performance Tools
Fold Lighthouse lab runs into your Continuous Integration workflow to
Lighthouse CI
prevent performance regressions.
A JS library you can integrate with your RUM tools to get a more granular
web-vitals.js JS understanding of your CWV performance.
Confidential + Proprietary
Homework :D
Confidential + Proprietary
Home Assignment
Confidential + Proprietary
Best Company LTD
www.example.com
Top Opportunities
1. …
2. …
3. …
Confidential + Proprietary
Q&A
Confidential + Proprietary
Thanks for joining us!
Confidential + Proprietary