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

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
 

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
 
Ad

Recently uploaded (20)

PPTX
Boost Your Online Presence with India’s Best Digital Marketers.pptx
Aar Codes
 
PDF
Kyoto, Japan Where Tradition Meets Modernity in the Heart of a Cultural Capit...
visionary vogues magazine
 
PPTX
Best Cloud Computing Course in Jalandhar.pptx
prabhkiran684
 
PPTX
bright Minds Digital Marketing Agency Kabul
AbdulraziqSabawoon1
 
PPTX
LinkedIn_Growth_Playbook_AlternateView.pptx
ymanoj3
 
PPTX
Process Control with management from iim
p24sharanr
 
PPTX
Toyota_Motor Company Marketing_Strategy.pptx
obotecollince
 
PDF
Boost website visibility with smart SEO.
DIGITAL-GROWTH
 
PPTX
Brand Archetype for better understanding
Siddharth Misra
 
PPTX
AI in SEO The 2025 Guide
Brainy India
 
PDF
Rich Communication Services (RCS): The Future of Mobile Messaging
G Tech Web Marketing
 
PDF
The best Linux course in Jalandhar.pdf
prabhkiran684
 
PDF
Chapter 1 Understanding the Service Marketing
crismarhoylar122
 
PDF
Blue and Black Modern Human Resources Management Presentation.pdf
digifussion93
 
PDF
The Ultimate Guide to the Best Bulk Email Verification Tools.pdf
mahalekshmi15
 
PDF
My BISA Presentation - How NGOs Can Win on Digital: Effective Social Media fo...
Eli Daniel-Wilson
 
PDF
Pdf of a the Social Media Marketing.pdf
r62544400
 
PPT
90 DAY PLAN in vestige marketing v2 2-2011 (1).ppt
PrudhviRaju87
 
PDF
The Digital Survival Guide for Service-Based Businesses in 2025
BIMA, Inc.
 
PDF
The Psychology of Web Content: Mastering Cognitive Biases, Conversion Trigger...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Boost Your Online Presence with India’s Best Digital Marketers.pptx
Aar Codes
 
Kyoto, Japan Where Tradition Meets Modernity in the Heart of a Cultural Capit...
visionary vogues magazine
 
Best Cloud Computing Course in Jalandhar.pptx
prabhkiran684
 
bright Minds Digital Marketing Agency Kabul
AbdulraziqSabawoon1
 
LinkedIn_Growth_Playbook_AlternateView.pptx
ymanoj3
 
Process Control with management from iim
p24sharanr
 
Toyota_Motor Company Marketing_Strategy.pptx
obotecollince
 
Boost website visibility with smart SEO.
DIGITAL-GROWTH
 
Brand Archetype for better understanding
Siddharth Misra
 
AI in SEO The 2025 Guide
Brainy India
 
Rich Communication Services (RCS): The Future of Mobile Messaging
G Tech Web Marketing
 
The best Linux course in Jalandhar.pdf
prabhkiran684
 
Chapter 1 Understanding the Service Marketing
crismarhoylar122
 
Blue and Black Modern Human Resources Management Presentation.pdf
digifussion93
 
The Ultimate Guide to the Best Bulk Email Verification Tools.pdf
mahalekshmi15
 
My BISA Presentation - How NGOs Can Win on Digital: Effective Social Media fo...
Eli Daniel-Wilson
 
Pdf of a the Social Media Marketing.pdf
r62544400
 
90 DAY PLAN in vestige marketing v2 2-2011 (1).ppt
PrudhviRaju87
 
The Digital Survival Guide for Service-Based Businesses in 2025
BIMA, Inc.
 
The Psychology of Web Content: Mastering Cognitive Biases, Conversion Trigger...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 

Lighthouse custom audits - London Web Performance 2019