SlideShare a Scribd company logo
1 of 65
Download to read offline
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 2020Harsha MV
 
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 Site5th 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 2018Katie 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 ExperienceRick 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 TaylorDan 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 AttentionTAC 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
 
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 SeasonG3 Communications
 
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 2018Katie 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 2018Anton 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 2021World 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.pdfAndrea 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.pptxAndrea 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.0Andrea 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 standardAndrea 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 SassAndrea 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 FaenzaAndrea 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

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxNeo4j
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 

Recently uploaded (20)

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 

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.