mmpf
Overview
The mmpf library is a modular library for measuring all the Web Vitals metrics on real users
Core Web Vitals
- Cumulative Layout Shift (CLS)
- First Input Delay (FID)
- Largest Contentful Paint (LCP)
- First Contentful Paint (FCP)
- Time to First Byte (TTFB)
Installation
From npm
You can install this library from npm by running:
$ npm install mmpf
Usage
import Mmpf from "mmpf";
new Mmpf({
analyticsTracker: (data) => {
console.table(data);
// You can upload data anywhere
// your code
// ... ...
},
});