Skip to content

A First Meaningful Paint metric collector using Mutation Observer

License

Notifications You must be signed in to change notification settings

debug-tips/painty

Repository files navigation

painty Build Status npm version

A First Meaningful Paint metric collector based on MutationObserver with a setTimeout fallback

Usage

npm i -S painty
import painty from 'painty';

painty(fmp => console.log(fmp));

optionally you can specify a timeout or by default painty will try to detect FMP until page unload

painty(5000, fmp => console.log(fmp));

About

A First Meaningful Paint metric collector using Mutation Observer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published