mmpf
v1.0.16
Published
前端性能监控SDK:Mmpf
Downloads
16
Maintainers
Readme
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
// ... ...
},
});