painty

0.3.3 • Public • Published

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));

Package Sidebar

Install

npm i painty

Weekly Downloads

1

Version

0.3.3

License

MIT

Unpacked Size

85.6 kB

Total Files

15

Last publish

Collaborators

  • jasonslyvia