Socket
Socket
Sign inDemoInstall

painty

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    painty

a First Meaningful Paint metric collector using Mutation Observer


Version published
Weekly downloads
1
Maintainers
1
Install size
91.4 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 03 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc