mmk-perfanalytics-js
v1.0.10
Published
> Performance analytics script for TTFB, FCP, Dom Load, and Window Load events
Downloads
4
Readme
Performance Analytics
Performance analytics script for TTFB, FCP, Dom Load, and Window Load events
Install
(https://www.npmjs.com/package/mmk-perfanaliytics-js)
npm i mmk-perfanaliytics-js
or
yarn add mmk-perfanaliytics-js
Usage
import perfanalytics from 'mmk-perfanaliytics-js'
const analytics = perfanalytics();
analytics.start();
metrics add localStorage
const metrics = window.localStorage.getItem("metrics")
console.log(JSON.parse(metrics))