SlideShare a Scribd company logo
Practical tips for 2023
How and why ($) to
improve web
performance
3
How do your website users feel?
1 second
loading time
improvement
-14%
users leaving the
website at landing
(bounce rate)
+13%
users reaching
website goals
(conversion rate)
Source: How Renault improved its bounce and conversion rates by measuring and optimizing Largest Contentful Paint
Takeaways 1. Web Performance (Web Vitals)
2. Business impact of Web Vitals
3. Top recommendations for 2023
Andrea Verlicchi
● Tons of websites
● Front-end development
● Web performance
consultant
8 Google Hackathon, London
Roadmap 1. Web performance, Search
Engine Optimisation, and
business impact
2. Measuring web performance
3. Quiz game! 🎉
4. Improvement tips for 2023
Web performance, SEO,
and business impact
11
How do your website users feel?
Google Core Web Vitals
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
100 ms 300 ms
Largest Contentful Paint (LCP)
Loading
Buy now
First Input Delay (FID)
Interactivity
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Visual stability
Ad
Buy now
Google Core Web Vitals - News!
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
100 ms 300 ms
Largest Contentful Paint (LCP)
Loading
Buy now
First Input Delay (FID)
Interactivity
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Visual stability
Ad
Buy now
Good Ok Poor
200 ms 500 ms
Interaction to Next Paint (INP)
March 2024
How does Google know?
Chrome User Experience
(CrUX)
Google Chrome CrUX Report
The Core Web Vitals impact your Google Search ranking
Source: https://developers.google.com/search/blog/2020/11/timing-for-page-experience
Core
Web
Vitals
Mobile friendly
HTTPS
No intrusive interstitials
Search signals for
page experience
Loading
Largest Contentful Paint (LCP)
Interactivity
First Input Delay (FCP)
Visual stability
Cumulative Layout Shift (CLS)
The Core Web Vitals impact the Google search ranking
SISTRIX
Visibility
Index
90%
95%
100%
105%
15/06/2021 27/06/2021 11/07/2021 25/07/2021
Good domains
110%
Google Update
31/08/2021
22/08/2021
08/08/2021
Poor domains
4%
Increase in
ranking
Source: https://www.sistrix.com/blog/core-web-vitals-is-a-measurable-ranking-factor/
Average Google Click-Through Rate (CTR) by Position
Source: https://clictadigital.com/what-is-the-average-google-click-through-rate-by-position/
Position
on
SERP
10
10% 20% 30% 50%
40%
43,32%
37,36%
29,90%
19,38%
10,95%
10,00%
5,28%
4,13%
4,13%
3,11%
0%
Percentage of clicks
9
34,2%
Average increase
in organic traffic
by climbing 1 rank
8
7
6
5
4
3
2
1
High conversion +
low traffic cost
Good performance
Low conversion +
high traffic cost
Poor performance
Success =
Traffic ×
Conversion
Sustainability
Source: CO2 emissions on the Web
Source: CO2 emissions on the Web
Shaving off a single kilobyte in a file that
is being loaded on 2 million pages
reduces CO2 emissions by an estimated
3000 kg per month.
Sustainability
118 kg 5X
Measuring
web performance
Real User Monitoring Lab
The big picture,
spot anomalies
Find the cause,
test solutions
Pagespeed
insights
Lighthouse
Chrome User
Experience Report
(CrUX)
The big picture,
spot anomalies
Find the cause,
test solutions
Real User Monitoring Lab
● On every page, while users
browse the web
● Real users, real devices,
connections, locations
● User interactions
● Summary, dashboard
● A single, specific URL
● Emulation, one location
● Detailed! Video, waterfall,
CPU, memory, etc.
● No user interactions
● Immediate results
Lab
Real User Monitoring
The big picture,
spot anomalies
Find the cause,
test solutions
Quiz time! 🎉
Thanks for playing
Improvement tips
for 2023
● Largest real-world impact
● Relevant and applicable to most sites
● Realistic to implement
Google Core Web Vitals
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
100 ms 300 ms
Largest Contentful Paint (LCP)
Loading
Buy now
First Input Delay (FID)
Interattività
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Stabilità visiva
Ad
Buy now
Ensure the LCP resource
is discoverable 🔍
from the HTML source
72% of mobile pages
LCP element = an image
39% of those images
not discoverable from HTML source
Sources: Web Almanac
● Load the image using an <img> element
with the src or srcset attribute
● Prefer server-side rendering (SSR) over
client-side rendering (CSR)
● If your image needs to be referenced
from an external CSS or JS file,
include it in the HTML source via a
<link rel="preload"> tag.
Ensure the LCP resource
is prioritized 🔺
● Add fetchpriority="high" to the
<img> tag of your LCP image
● Never set loading="lazy" on the
<img> tag of your LCP image
● Defer non-critical resources when
possible
Use a CDN 🌐 to optimize
document and resource
server-time (TTFB)
Serve your content as geographically
close to your users as possible.
Cache that content so recently-requested
content can be served again quickly.
● Increase how long content is cached for.
● Cache content indefinitely, and purge the
cache on updates.
● Move dynamic logic from your origin
server to the edge
Google Core Web Vitals
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
100 ms 300 ms
Largest Contentful Paint (LCP)
Caricamento
Buy now
First Input Delay (FID)
Interactivity
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Stabilità visiva
Ad
Buy now
Google Core Web Vitals
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
200 ms 500 ms
Largest Contentful Paint (LCP)
Caricamento
Buy now
Interaction to Next Paint (INP)
Interactivity
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Stabilità visiva
Ad
Buy now
Avoid or break up 💥
long tasks
Tasks include rendering, layout, parsing
and compiling and executing scripts.
50ms of main-thread blocking
threshold for a task to be considered “long”.
19 is the median number
of long tasks on mobile
Sources: Web Almanac
● Break up long tasks into smaller ones,
yielding often to the main thread
● Consider using APIs such as
isInputPending and the
Scheduler API.
Avoid unnecessary
🟨 JavaScript
460 kb / page
median of JS code served to each page
Too much Javascript
create an environment where tasks are
competing for the main thread’s attention
Sources: Web Almanac, Optimize LCP / Make it discoverable
● Use the coverage tool in Chrome
DevTools to find unused code
● If unused because it will be used later,
move to separate bundle - code splitting
● Using a tag manager?
Periodically check your tags.
Avoid large 🐙
rendering updates
Javascript is not the only thing that
can affect your website's responsiveness.
Rendering can be expensive
and can interfere with your website's
ability to respond to user inputs.
Sources: Web Almanac, Optimize LCP / Make it discoverable
● Avoid using
requestAnimationFrame() for doing
any non-visual work.
● Keep your DOM size small.
● Use CSS containment
(contain property)
Google Core Web Vitals
Good Ok Poor
2.5 s 4.0 s
Good Ok Poor
100 ms 300 ms
Largest Contentful Paint (LCP)
Caricamento
Buy now
First Input Delay (FID)
Interattività
Buy now
👆
Good Ok Poor
0.10 0.25
Cumulative Layout Shift (CLS)
Visual stability
Ad
Buy now
Set explicit sizes 🖼
on any content loaded
from the page
Sources: Web Almanac,
0px initial default height
for unsized images
72% of pages
have at least one unsized image
● Explicitly set width and height attributes
(or equivalent CSS properties)
on images
● Use the aspect-ratio CSS property
to reserve space for other lazy loaded
content (ads, embedded videos, etc.)
● If aspect is unknown, use min-height
Ensure pages are eligible
for back/forward cache
(bfcache) 💭
35% of pages are
ineligible for the bfcache
Sources: Web Almanac
● Check if your pages are eligible for the
bfcache using bfcache tester in DevTools
● Work on the reasons why they are not
Sources: bfcache tester in DevTools
Avoid animations and
transitions 🎞 that use layout-
inducing CSS properties
15% less likely to have "good" CLS
if you animate any CSS property that
could affect layout
Absolutely positioned elements that
animate top or left will cause layout shifts
Sources: Web Almanac, Optimize LCP / Make it discoverable
● Never animate or transition CSS
properties that require browsers to
update page layout
● Instead of animating top or left,
animate transform:translateX() or
transform:translateY()
Let’s wrap up
2022 © cognizant netcentric
60
2022 © cognizant netcentric
61
● + organic traffic
● + brand perception
● + conversion rate
● – carbon footprint
Feedback form
Contact us

More Related Content

Similar to How and Why ($) to improve web performance.pdf

Front-End Performance Checklist 2020
Front-End Performance Checklist 2020Front-End Performance Checklist 2020
Front-End Performance Checklist 2020
Harsha MV
 
Lighthouse
LighthouseLighthouse
Lighthouse
Hsin-Hao Tang
 
5 Simple Actions to Make a Measurable Impact on Your Responsive Site
5 Simple Actions to Make a Measurable Impact on Your Responsive Site5 Simple Actions to Make a Measurable Impact on Your Responsive Site
5 Simple Actions to Make a Measurable Impact on Your Responsive Site
5th Finger
 
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
Katie Sylor-Miller
 
Google at WordCamp US: Performance IS User Experience
Google at WordCamp US: Performance IS User ExperienceGoogle at WordCamp US: Performance IS User Experience
Google at WordCamp US: Performance IS User Experience
Rick Viscomi
 
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan TaylorOptimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
Dan Taylor
 
Core Web Vitals - Why You Need to Pay Attention
Core Web Vitals - Why You Need to Pay AttentionCore Web Vitals - Why You Need to Pay Attention
Core Web Vitals - Why You Need to Pay Attention
TAC Marketing Group
 
Client-side Web Performance Optimization [paper]
Client-side Web Performance Optimization [paper]Client-side Web Performance Optimization [paper]
Client-side Web Performance Optimization [paper]
Jakob
 
Core Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdfCore Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdf
WebGuru Infosystems Pvt. Ltd.
 
Modern Web Applications
Modern Web ApplicationsModern Web Applications
Modern Web Applications
Ömer Göktuğ Poyraz
 
MeasureWorks - Why people hate to wait for your website to load (and how to f...
MeasureWorks - Why people hate to wait for your website to load (and how to f...MeasureWorks - Why people hate to wait for your website to load (and how to f...
MeasureWorks - Why people hate to wait for your website to load (and how to f...
MeasureWorks
 
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Katie Sylor-Miller
 
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
G3 Communications
 
Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)
Betclic Everest Group Tech Team
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
clickramanm
 
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Katie Sylor-Miller
 
The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018
Anton Shulke
 
HK CodeConf 2015 - Your WebPerf Sucks
HK CodeConf 2015 - Your WebPerf Sucks HK CodeConf 2015 - Your WebPerf Sucks
HK CodeConf 2015 - Your WebPerf Sucks
Holger Bartel
 
Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021
World Web Technology Pvt Ltd
 
Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More
Boundify
 

Similar to How and Why ($) to improve web performance.pdf (20)

Front-End Performance Checklist 2020
Front-End Performance Checklist 2020Front-End Performance Checklist 2020
Front-End Performance Checklist 2020
 
Lighthouse
LighthouseLighthouse
Lighthouse
 
5 Simple Actions to Make a Measurable Impact on Your Responsive Site
5 Simple Actions to Make a Measurable Impact on Your Responsive Site5 Simple Actions to Make a Measurable Impact on Your Responsive Site
5 Simple Actions to Make a Measurable Impact on Your Responsive Site
 
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
Raiders of the Fast Start: Frontend Performance Achaeology - Fluent 2018
 
Google at WordCamp US: Performance IS User Experience
Google at WordCamp US: Performance IS User ExperienceGoogle at WordCamp US: Performance IS User Experience
Google at WordCamp US: Performance IS User Experience
 
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan TaylorOptimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
Optimization 2020 | Using Edge SEO For Technical Issues ft. Dan Taylor
 
Core Web Vitals - Why You Need to Pay Attention
Core Web Vitals - Why You Need to Pay AttentionCore Web Vitals - Why You Need to Pay Attention
Core Web Vitals - Why You Need to Pay Attention
 
Client-side Web Performance Optimization [paper]
Client-side Web Performance Optimization [paper]Client-side Web Performance Optimization [paper]
Client-side Web Performance Optimization [paper]
 
Core Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdfCore Web Vitals in Website Design.pdf
Core Web Vitals in Website Design.pdf
 
Modern Web Applications
Modern Web ApplicationsModern Web Applications
Modern Web Applications
 
MeasureWorks - Why people hate to wait for your website to load (and how to f...
MeasureWorks - Why people hate to wait for your website to load (and how to f...MeasureWorks - Why people hate to wait for your website to load (and how to f...
MeasureWorks - Why people hate to wait for your website to load (and how to f...
 
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
Raiders of the Fast Start: Frontend Performance Archaeology - Performance.now...
 
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
5 Steps To Deliver The Fastest Mobile Shopping Experience This Holiday Season
 
Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
 
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
Raiders of the Fast Start: Frontend Performance Archaeology PerfmattersConf 2018
 
The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018
 
HK CodeConf 2015 - Your WebPerf Sucks
HK CodeConf 2015 - Your WebPerf Sucks HK CodeConf 2015 - Your WebPerf Sucks
HK CodeConf 2015 - Your WebPerf Sucks
 
Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021Core web vitals is the thing you should focus on if you own a website in 2021
Core web vitals is the thing you should focus on if you own a website in 2021
 
Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More Website Optimization How to Increase Page Performance and More
Website Optimization How to Increase Page Performance and More
 

More from Andrea Verlicchi

Come e perché ($) migliorare le prestazioni web.pdf
Come e perché ($) migliorare le prestazioni web.pdfCome e perché ($) migliorare le prestazioni web.pdf
Come e perché ($) migliorare le prestazioni web.pdf
Andrea Verlicchi
 
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptxCome e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
Andrea Verlicchi
 
2022.04 - CSS Day IT - Images Optimisation 4.0
2022.04 - CSS Day IT - Images Optimisation 4.02022.04 - CSS Day IT - Images Optimisation 4.0
2022.04 - CSS Day IT - Images Optimisation 4.0
Andrea Verlicchi
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
Andrea Verlicchi
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
Andrea Verlicchi
 
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 FaenzaSviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
Andrea Verlicchi
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryAndrea Verlicchi
 

More from Andrea Verlicchi (7)

Come e perché ($) migliorare le prestazioni web.pdf
Come e perché ($) migliorare le prestazioni web.pdfCome e perché ($) migliorare le prestazioni web.pdf
Come e perché ($) migliorare le prestazioni web.pdf
 
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptxCome e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
Come e perché ($) migliorare le prestazioni web - Aprile 2023.pptx
 
2022.04 - CSS Day IT - Images Optimisation 4.0
2022.04 - CSS Day IT - Images Optimisation 4.02022.04 - CSS Day IT - Images Optimisation 4.0
2022.04 - CSS Day IT - Images Optimisation 4.0
 
Responsive images, an html 5.1 standard
Responsive images, an html 5.1 standardResponsive images, an html 5.1 standard
Responsive images, an html 5.1 standard
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
 
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 FaenzaSviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
Sviluppo CSS agile con SASS e Compass - CSS Day 2015 Faenza
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 

How and Why ($) to improve web performance.pdf

  • 1. Practical tips for 2023 How and why ($) to improve web performance
  • 2.
  • 3. 3 How do your website users feel?
  • 4. 1 second loading time improvement -14% users leaving the website at landing (bounce rate) +13% users reaching website goals (conversion rate) Source: How Renault improved its bounce and conversion rates by measuring and optimizing Largest Contentful Paint
  • 5.
  • 6. Takeaways 1. Web Performance (Web Vitals) 2. Business impact of Web Vitals 3. Top recommendations for 2023
  • 7. Andrea Verlicchi ● Tons of websites ● Front-end development ● Web performance consultant
  • 9. Roadmap 1. Web performance, Search Engine Optimisation, and business impact 2. Measuring web performance 3. Quiz game! 🎉 4. Improvement tips for 2023
  • 10. Web performance, SEO, and business impact
  • 11. 11 How do your website users feel?
  • 12. Google Core Web Vitals Good Ok Poor 2.5 s 4.0 s Good Ok Poor 100 ms 300 ms Largest Contentful Paint (LCP) Loading Buy now First Input Delay (FID) Interactivity Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Visual stability Ad Buy now
  • 13. Google Core Web Vitals - News! Good Ok Poor 2.5 s 4.0 s Good Ok Poor 100 ms 300 ms Largest Contentful Paint (LCP) Loading Buy now First Input Delay (FID) Interactivity Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Visual stability Ad Buy now Good Ok Poor 200 ms 500 ms Interaction to Next Paint (INP) March 2024
  • 14. How does Google know? Chrome User Experience (CrUX) Google Chrome CrUX Report
  • 15. The Core Web Vitals impact your Google Search ranking Source: https://developers.google.com/search/blog/2020/11/timing-for-page-experience Core Web Vitals Mobile friendly HTTPS No intrusive interstitials Search signals for page experience Loading Largest Contentful Paint (LCP) Interactivity First Input Delay (FCP) Visual stability Cumulative Layout Shift (CLS)
  • 16. The Core Web Vitals impact the Google search ranking SISTRIX Visibility Index 90% 95% 100% 105% 15/06/2021 27/06/2021 11/07/2021 25/07/2021 Good domains 110% Google Update 31/08/2021 22/08/2021 08/08/2021 Poor domains 4% Increase in ranking Source: https://www.sistrix.com/blog/core-web-vitals-is-a-measurable-ranking-factor/
  • 17. Average Google Click-Through Rate (CTR) by Position Source: https://clictadigital.com/what-is-the-average-google-click-through-rate-by-position/ Position on SERP 10 10% 20% 30% 50% 40% 43,32% 37,36% 29,90% 19,38% 10,95% 10,00% 5,28% 4,13% 4,13% 3,11% 0% Percentage of clicks 9 34,2% Average increase in organic traffic by climbing 1 rank 8 7 6 5 4 3 2 1
  • 18. High conversion + low traffic cost Good performance Low conversion + high traffic cost Poor performance Success = Traffic × Conversion
  • 20. Source: CO2 emissions on the Web Shaving off a single kilobyte in a file that is being loaded on 2 million pages reduces CO2 emissions by an estimated 3000 kg per month. Sustainability 118 kg 5X
  • 22. Real User Monitoring Lab The big picture, spot anomalies Find the cause, test solutions
  • 23. Pagespeed insights Lighthouse Chrome User Experience Report (CrUX) The big picture, spot anomalies Find the cause, test solutions Real User Monitoring Lab
  • 24. ● On every page, while users browse the web ● Real users, real devices, connections, locations ● User interactions ● Summary, dashboard ● A single, specific URL ● Emulation, one location ● Detailed! Video, waterfall, CPU, memory, etc. ● No user interactions ● Immediate results Lab Real User Monitoring The big picture, spot anomalies Find the cause, test solutions
  • 28. ● Largest real-world impact ● Relevant and applicable to most sites ● Realistic to implement
  • 29. Google Core Web Vitals Good Ok Poor 2.5 s 4.0 s Good Ok Poor 100 ms 300 ms Largest Contentful Paint (LCP) Loading Buy now First Input Delay (FID) Interattività Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Stabilità visiva Ad Buy now
  • 30. Ensure the LCP resource is discoverable 🔍 from the HTML source
  • 31. 72% of mobile pages LCP element = an image 39% of those images not discoverable from HTML source Sources: Web Almanac
  • 32. ● Load the image using an <img> element with the src or srcset attribute ● Prefer server-side rendering (SSR) over client-side rendering (CSR) ● If your image needs to be referenced from an external CSS or JS file, include it in the HTML source via a <link rel="preload"> tag.
  • 33. Ensure the LCP resource is prioritized 🔺
  • 34. ● Add fetchpriority="high" to the <img> tag of your LCP image ● Never set loading="lazy" on the <img> tag of your LCP image ● Defer non-critical resources when possible
  • 35. Use a CDN 🌐 to optimize document and resource server-time (TTFB)
  • 36. Serve your content as geographically close to your users as possible. Cache that content so recently-requested content can be served again quickly.
  • 37. ● Increase how long content is cached for. ● Cache content indefinitely, and purge the cache on updates. ● Move dynamic logic from your origin server to the edge
  • 38. Google Core Web Vitals Good Ok Poor 2.5 s 4.0 s Good Ok Poor 100 ms 300 ms Largest Contentful Paint (LCP) Caricamento Buy now First Input Delay (FID) Interactivity Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Stabilità visiva Ad Buy now
  • 39. Google Core Web Vitals Good Ok Poor 2.5 s 4.0 s Good Ok Poor 200 ms 500 ms Largest Contentful Paint (LCP) Caricamento Buy now Interaction to Next Paint (INP) Interactivity Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Stabilità visiva Ad Buy now
  • 40. Avoid or break up 💥 long tasks
  • 41. Tasks include rendering, layout, parsing and compiling and executing scripts. 50ms of main-thread blocking threshold for a task to be considered “long”. 19 is the median number of long tasks on mobile Sources: Web Almanac
  • 42. ● Break up long tasks into smaller ones, yielding often to the main thread ● Consider using APIs such as isInputPending and the Scheduler API.
  • 44. 460 kb / page median of JS code served to each page Too much Javascript create an environment where tasks are competing for the main thread’s attention Sources: Web Almanac, Optimize LCP / Make it discoverable
  • 45. ● Use the coverage tool in Chrome DevTools to find unused code ● If unused because it will be used later, move to separate bundle - code splitting ● Using a tag manager? Periodically check your tags.
  • 47. Javascript is not the only thing that can affect your website's responsiveness. Rendering can be expensive and can interfere with your website's ability to respond to user inputs. Sources: Web Almanac, Optimize LCP / Make it discoverable
  • 48. ● Avoid using requestAnimationFrame() for doing any non-visual work. ● Keep your DOM size small. ● Use CSS containment (contain property)
  • 49. Google Core Web Vitals Good Ok Poor 2.5 s 4.0 s Good Ok Poor 100 ms 300 ms Largest Contentful Paint (LCP) Caricamento Buy now First Input Delay (FID) Interattività Buy now 👆 Good Ok Poor 0.10 0.25 Cumulative Layout Shift (CLS) Visual stability Ad Buy now
  • 50. Set explicit sizes 🖼 on any content loaded from the page
  • 51. Sources: Web Almanac, 0px initial default height for unsized images 72% of pages have at least one unsized image
  • 52. ● Explicitly set width and height attributes (or equivalent CSS properties) on images ● Use the aspect-ratio CSS property to reserve space for other lazy loaded content (ads, embedded videos, etc.) ● If aspect is unknown, use min-height
  • 53. Ensure pages are eligible for back/forward cache (bfcache) 💭
  • 54. 35% of pages are ineligible for the bfcache Sources: Web Almanac
  • 55. ● Check if your pages are eligible for the bfcache using bfcache tester in DevTools ● Work on the reasons why they are not Sources: bfcache tester in DevTools
  • 56. Avoid animations and transitions 🎞 that use layout- inducing CSS properties
  • 57. 15% less likely to have "good" CLS if you animate any CSS property that could affect layout Absolutely positioned elements that animate top or left will cause layout shifts Sources: Web Almanac, Optimize LCP / Make it discoverable
  • 58. ● Never animate or transition CSS properties that require browsers to update page layout ● Instead of animating top or left, animate transform:translateX() or transform:translateY()
  • 60. 2022 © cognizant netcentric 60
  • 61. 2022 © cognizant netcentric 61
  • 62.
  • 63. ● + organic traffic ● + brand perception ● + conversion rate ● – carbon footprint
  • 64.