Skip to content

This is an example project for showing how to implement a basic performance monitoring script to capture Core Web Vitals.

License

Notifications You must be signed in to change notification settings

dev-arminder/Monitoring-Core-Web-Vitals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitoring Core Web Vitals

This is an example project for showing how to implement a basic performance monitoring script to capture Core Web Vitals. This is for educational purposes and is not production ready.

How it Works

  • Each time a user visits the home page, a utility JS file calculates the Web Vitals Score using the Performace Observer API and sends it in beacon form to the API on page unload
  • These Core Web Vitals Score can then be saved in a CSV log file under the logs directory and used to improve the field score of each corresponding web vitals.

How to use


npm install
npm start

Open a browser at http://localhost:3000/ to view the website.

Learn More About Web Performance

About

This is an example project for showing how to implement a basic performance monitoring script to capture Core Web Vitals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published