Web Vitals

Essential metrics for a healthy site.

README

web-vitals


  - From npm
- API
  - Types
  - Functions

Overview


The web-vitals library is a tiny (~1.5K, brotli'd), modular library for measuring all the Web Vitals metrics on real users, in a way that accurately matches how they're measured by Chrome and reported to other Google tools (e.g. Chrome User Experience Report, Page Speed Insights, Search Console's Speed Report).

The library supports all of the Core Web Vitals as well as a number of other metrics that are useful in diagnosing real-user performance issues.

Core Web Vitals



Other metrics




Install and load the library



From npm


You can install this library from npm by running:

  1. ```sh
  2. npm install web-vitals
  3. ```

_**Note:** If you're not using npm, you can still load `web-vitals` via `