SlideShare a Scribd company logo
@LoukilAymen
Google Lighthouse Custom
Audits
For Web Performance
@LDNWebPerf
@LoukilAymen
Hello i’m Aymen Loukil
International SEO Consultant
15 years on the web / Entrepreneur
Speaker at many events
I make websites faster..
Ex-developer (And i love devs)
https://www.aymen-loukil.com
@LoukilAymen
@LoukilAymen
@LoukilAymen
web.dev/metrics #ChromeDevSummit
@LoukilAymen
Product Hero Image
Time To Hero Image
@LoukilAymen
Hero paragraph / heading
Time To Hero Heading /
Paragraph
@LoukilAymen
When video starts to play
First Video Second
@LoukilAymen
Business hero element
Time To First User
Story ?
@LoukilAymen
So you mean we could measure these
with Lighthouse ?
@LoukilAymen
Hidden gem in Lighthouse repo
https://github.com/GoogleChrome/lighthouse
@LoukilAymen
Lighthouse became my super tool !
@LoukilAymen
Extend Lighthouse default categories !
@LoukilAymen
Lighthouse Architecture
@LoukilAymen
Audit requirements
gatherer.js audit.js custom-config.js
@LoukilAymen
Custom audit requirements
1- Define the metric(s) to test
2- Ensure we have the data to test it
3- Write the Gatherer
4- Write the audit
5- Set up a custom config
@LoukilAymen
1- Define the metric to test
TTHI : Time To Hero Image
Example : TTHI < 3 seconds
@LoukilAymen
User Timing API
1- Create a mark :
performance.mark(“hero_image”);
2- Retrieve it by name :
performance.getEntriesByName("hero_image")
https://developer.mozilla.org/en-US/docs/We
b/API/User_Timing_API
@LoukilAymen
2- Ensure we have the data to test
We should mark to time when the hero image is loaded
yourwebsite/my-awesome-product.html
@LoukilAymen
3- Write the Gatherer
heroimage-gatherer.js
@LoukilAymen
4- Create the audit
heroimage-audit.js Define the metas
@LoukilAymen
4- Create the audit
Write the auditheroimage-audit.js
@LoukilAymen
4- Set up a custom configuration
custom-config.js
@LoukilAymen
Run the custom audit
lighthouse --config-path=custom-config.js https://yourURL
@LoukilAymen
Lighthouse running the audits
@LoukilAymen
Report generated
@LoukilAymen
@LoukilAymen
Q: Do i always need a gatherer ?
@LoukilAymen
What if we add another audit ?
@LoukilAymen
Time To Product Price
TTPP : Time To Product Price
Example : TTPP < 1 seconds
@LoukilAymen
Multiple audits category
More weight for the
hero image
We have now 2
audits to run
@LoukilAymen
Report
@LoukilAymen
Another example ?
@LoukilAymen
2nd example - Number of images (quantitative metric)
Number Of Images
NOI < 15
@LoukilAymen
ImageCount Gatherer
imagecount-gatherer.js
@LoukilAymen
ImageCount audit
imagecount-audit.js
@LoukilAymen
Custom configuration
custom-config.js
@LoukilAymen
Report
@LoukilAymen
3rd example - Fonts size [without a gatherer]
size-audit.js
@LoukilAymen
3rd example - Fonts size [without a gatherer]
@LoukilAymen
Report
@LoukilAymen
Check all the code examples
@LoukilAymen
Create Lighthouse Plugin
Specific to a CMS, framework
Specific to group of tests
https://github.com/GoogleChrome/lighth
ouse/tree/master/docs/recipes/lighthous
e-plugin-example
@LoukilAymen
API for custom metrics
- Performance Observer
- User Timing API
- Long Tasks API
- Element Timing API
- Resource Timing API
- Navigation Timing API
- Server Timing API
@LoukilAymen
Tools doing custom metrics audits
@LoukilAymen
Final notes
- Many possibilities for custom metrics measurement
- Correlate custom metrics with business KPIs (Bounce rate, conversions..)
- Explore new custom metrics spaces
- Lighthouse variability
- Automate measurements with Lighthouse CI (new)
- https://github.com/GoogleChrome/lighthouse-ci
@LoukilAymen
Lighthouse CI #ChromeDevSummit
@LoukilAymen
Questions ?International SEO Consultant
15 years on the web / Entrepreneur
Speaker at many events
I make websites faster..
Ex-developer
https://www.aymen-loukil.com
@LoukilAymen

More Related Content

PDF
Web vitals are vitals - Aymen Loukil
Aymen Loukil
 
PDF
20 quick wins to improve your website speed
Aymen Loukil
 
PPTX
Optimizing Your Site for Holiday Traffic
WP Engine UK
 
PDF
Don't lose revenue. Go viral with no downtime.
WP Engine
 
PPTX
The WordPress REST API as a Springboard for Website Greatness
WP Engine UK
 
PDF
3 Gifts My Users Gave Me - Alexandra Draghici - WordCamp Europe 2017
Alexandra_CaptainForm
 
PPTX
Amp up your Site with Accelerated Mobile Pages
Brian McKeiver
 
PPTX
Core web Vitals: Web Performance and Usability
Ingo Steinke
 
Web vitals are vitals - Aymen Loukil
Aymen Loukil
 
20 quick wins to improve your website speed
Aymen Loukil
 
Optimizing Your Site for Holiday Traffic
WP Engine UK
 
Don't lose revenue. Go viral with no downtime.
WP Engine
 
The WordPress REST API as a Springboard for Website Greatness
WP Engine UK
 
3 Gifts My Users Gave Me - Alexandra Draghici - WordCamp Europe 2017
Alexandra_CaptainForm
 
Amp up your Site with Accelerated Mobile Pages
Brian McKeiver
 
Core web Vitals: Web Performance and Usability
Ingo Steinke
 

What's hot (20)

PPTX
Great Lakes Area .Net UG: Optimize .Net Azure App Services
Brian McKeiver
 
PDF
Advanced Custom Fields(ACF) + Page Builder at WordPress meetup Stockholm 2016...
Peter Elmered
 
PDF
WordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo Meetup
rtCamp
 
PDF
WordCamp San Diego 2015 - WordPress, WP-API, and Web Applications
Roy Sivan
 
PPTX
Webinar: On-Page SEO Tips and Tricks
WP Engine
 
PPTX
Webinar: AngularJS and the WordPress REST API
WP Engine UK
 
PPTX
Steve Bailey — Core Web Vitals & Roadblocks to Success
Semrush
 
PDF
WordPress Tallahassee Meetup: Turning WordPress Sites Into Web & Mobile Apps
Caldera Labs
 
PDF
Zero cost serverless Real time web app
Barcamp Saigon
 
PPTX
Best practices 101
Utsav Singh Rathour
 
PDF
Client-friendly WordPress Websites
Aaron Rutley
 
PPTX
Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Patrick Hathaway
 
PDF
The Thick Front-End
Jeff Dickey
 
PDF
Building and future-proofing your WordPress sites with the Genesis Framework
WP Engine
 
PDF
How to Decide If Page Builders is Right for You
educarreiro
 
PDF
Webinar - Accessibility: The journey.
WP Engine
 
PDF
The Magic Carpet Ride - A business perspective on Devops
Em Campbell-Pretty
 
PDF
AMP and WordPress
billerickson
 
PPTX
Google AMP (Accelerated Mobile Pages)
Chitpong Wuttanan
 
PDF
WordCamp, Cape Town 2017
Daine Mawer
 
Great Lakes Area .Net UG: Optimize .Net Azure App Services
Brian McKeiver
 
Advanced Custom Fields(ACF) + Page Builder at WordPress meetup Stockholm 2016...
Peter Elmered
 
WordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo Meetup
rtCamp
 
WordCamp San Diego 2015 - WordPress, WP-API, and Web Applications
Roy Sivan
 
Webinar: On-Page SEO Tips and Tricks
WP Engine
 
Webinar: AngularJS and the WordPress REST API
WP Engine UK
 
Steve Bailey — Core Web Vitals & Roadblocks to Success
Semrush
 
WordPress Tallahassee Meetup: Turning WordPress Sites Into Web & Mobile Apps
Caldera Labs
 
Zero cost serverless Real time web app
Barcamp Saigon
 
Best practices 101
Utsav Singh Rathour
 
Client-friendly WordPress Websites
Aaron Rutley
 
Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Patrick Hathaway
 
The Thick Front-End
Jeff Dickey
 
Building and future-proofing your WordPress sites with the Genesis Framework
WP Engine
 
How to Decide If Page Builders is Right for You
educarreiro
 
Webinar - Accessibility: The journey.
WP Engine
 
The Magic Carpet Ride - A business perspective on Devops
Em Campbell-Pretty
 
AMP and WordPress
billerickson
 
Google AMP (Accelerated Mobile Pages)
Chitpong Wuttanan
 
WordCamp, Cape Town 2017
Daine Mawer
 
Ad

Similar to Lighthouse custom audits - London Web Performance 2019 (6)

PPTX
lighthouse_performance_testing_lighthouse_performance_testing.pptx
PradhyumnaPatil1
 
PDF
Lighthouse
Hsin-Hao Tang
 
DOCX
Introduction to SEO with Google Lighthouse
AidanChard
 
PDF
"You’re probably using Lighthouse wrong: How do we misuse the most common too...
Fwdays
 
PPTX
Shining a light on performance (js meetup)
Yoav Niran
 
PPTX
Page Speed Insights: The Ballad of Improving Performance
James McNulty
 
lighthouse_performance_testing_lighthouse_performance_testing.pptx
PradhyumnaPatil1
 
Lighthouse
Hsin-Hao Tang
 
Introduction to SEO with Google Lighthouse
AidanChard
 
"You’re probably using Lighthouse wrong: How do we misuse the most common too...
Fwdays
 
Shining a light on performance (js meetup)
Yoav Niran
 
Page Speed Insights: The Ballad of Improving Performance
James McNulty
 
Ad

More from Aymen Loukil (13)

PDF
Reussir les signaux web essentiels (Web Vitals) - Search Y
Aymen Loukil
 
PDF
Structured Data for Covid-19 - WebZurich
Aymen Loukil
 
PDF
Sujet et monitoring SEO 2020 - Aymen Loukil Search Y 2020
Aymen Loukil
 
PDF
Donnees structurees pour le seo seo camp day lille 2020
Aymen Loukil
 
PPTX
Profiter de Google Discover - SEO Camp Day Lorraine 2019
Aymen Loukil
 
PDF
Performance web - Optez pour une approche qui marche
Aymen Loukil
 
PDF
Quick-wins pour accélérer son site web - seo camp day lorraine 2018
Aymen Loukil
 
PPTX
Performance web #perfmatters - Tuniseo 2018
Aymen Loukil
 
PPTX
Améliorez la vitesse de chargement de votre site - Webisland 2018
Aymen Loukil
 
PPTX
Technical seo tips and tricks actionnables 2018
Aymen Loukil
 
PPTX
SEO pour les développeurs - eléments essentiels et bonnes pratiques
Aymen Loukil
 
PDF
Knowledge Graph et comment en tirer profit pour le SEO
Aymen Loukil
 
PPTX
Les éléments essentiels du seo technique - Tuniseo
Aymen Loukil
 
Reussir les signaux web essentiels (Web Vitals) - Search Y
Aymen Loukil
 
Structured Data for Covid-19 - WebZurich
Aymen Loukil
 
Sujet et monitoring SEO 2020 - Aymen Loukil Search Y 2020
Aymen Loukil
 
Donnees structurees pour le seo seo camp day lille 2020
Aymen Loukil
 
Profiter de Google Discover - SEO Camp Day Lorraine 2019
Aymen Loukil
 
Performance web - Optez pour une approche qui marche
Aymen Loukil
 
Quick-wins pour accélérer son site web - seo camp day lorraine 2018
Aymen Loukil
 
Performance web #perfmatters - Tuniseo 2018
Aymen Loukil
 
Améliorez la vitesse de chargement de votre site - Webisland 2018
Aymen Loukil
 
Technical seo tips and tricks actionnables 2018
Aymen Loukil
 
SEO pour les développeurs - eléments essentiels et bonnes pratiques
Aymen Loukil
 
Knowledge Graph et comment en tirer profit pour le SEO
Aymen Loukil
 
Les éléments essentiels du seo technique - Tuniseo
Aymen Loukil
 

Recently uploaded (20)

PPTX
What Branding looks like, by: Cayancela Sánchez Jairo
Jairo Cayancela Sánchez
 
PDF
Master Marketing Fundamentals: Principles, Psychology & Strategy (Day 1) | Th...
Dipendra Poudel | The Digital Dipendra
 
PDF
Intent Based vs Demand Gen - Duda Webinar.pdf
Anton Shulke
 
PDF
The Internet of Agents - Alexander De Ridder, SmythOS
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PPTX
Best Leather Products in Trichy | minibaskett.pptx
minibaskett786
 
PDF
Performance-Driven Web Design-Fast, Smart & Scalable Web Design
Viacon
 
PDF
Rebranding Social Media: Hello, Scroll Media by Saleh Lzeik
Saleh Lzeik
 
PPTX
Fix or Redesign it? Plan before you Blow Your Budget
Cybervise
 
PDF
Multi-Platform Search is the Future of SEO: How to Capture Demand Beyond Goog...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Hit Play, Then Pause: Reframing Entertainment for Resilience SXSW 2026 Propos...
morgan212401
 
PDF
What If - Tina McCormack Beaty, Chief Brand & Marketing Officer, SHRM
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Digital Marketing Landscape for Beginners (Nepali Case Study Included) – Day ...
Dipendra Poudel | The Digital Dipendra
 
PDF
Owning the Outcome When You Don’t Own the Click: A New Look at Zero-Click Mar...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Catalogo Ciabatta Mare da BestPromotion
BestPromotion
 
PPTX
Punjabi_Music_KayD_ FINAL 2025 .pptx
krishandutt4459
 
PPTX
Agriculture marketing trade and price list
thegreatprettyvprobr
 
PDF
10 Best Practices for SEO Cross Linking.
Flying Elephant Digital Marketing Agency
 
PDF
Social-First PR: Social Ranking Strategies for the Search Everywhere Landscap...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
How AI is Reshaping SEO: Trends, Predictions, and Opportunities for Marketers
Fractl - Content Marketing Agency
 
PDF
GBS Company Profile || Trending Branding
Pratibha Singh
 
What Branding looks like, by: Cayancela Sánchez Jairo
Jairo Cayancela Sánchez
 
Master Marketing Fundamentals: Principles, Psychology & Strategy (Day 1) | Th...
Dipendra Poudel | The Digital Dipendra
 
Intent Based vs Demand Gen - Duda Webinar.pdf
Anton Shulke
 
The Internet of Agents - Alexander De Ridder, SmythOS
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Best Leather Products in Trichy | minibaskett.pptx
minibaskett786
 
Performance-Driven Web Design-Fast, Smart & Scalable Web Design
Viacon
 
Rebranding Social Media: Hello, Scroll Media by Saleh Lzeik
Saleh Lzeik
 
Fix or Redesign it? Plan before you Blow Your Budget
Cybervise
 
Multi-Platform Search is the Future of SEO: How to Capture Demand Beyond Goog...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Hit Play, Then Pause: Reframing Entertainment for Resilience SXSW 2026 Propos...
morgan212401
 
What If - Tina McCormack Beaty, Chief Brand & Marketing Officer, SHRM
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Digital Marketing Landscape for Beginners (Nepali Case Study Included) – Day ...
Dipendra Poudel | The Digital Dipendra
 
Owning the Outcome When You Don’t Own the Click: A New Look at Zero-Click Mar...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Catalogo Ciabatta Mare da BestPromotion
BestPromotion
 
Punjabi_Music_KayD_ FINAL 2025 .pptx
krishandutt4459
 
Agriculture marketing trade and price list
thegreatprettyvprobr
 
10 Best Practices for SEO Cross Linking.
Flying Elephant Digital Marketing Agency
 
Social-First PR: Social Ranking Strategies for the Search Everywhere Landscap...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
How AI is Reshaping SEO: Trends, Predictions, and Opportunities for Marketers
Fractl - Content Marketing Agency
 
GBS Company Profile || Trending Branding
Pratibha Singh
 

Lighthouse custom audits - London Web Performance 2019