1.0.6 • Published 5 years ago

web_performance_collector v1.0.6

Weekly downloads
14
License
ISC
Repository
-
Last release
5 years ago

Installation

yarn add web_performance_collector
npm install web_performance_collector

Usage

Important Note:In order to get clean data , be sure that the library used when when onload method is fired

React

import { getPerformanceMeasurements }  from 'web_performance_collector'

useEffect(()=>{
window.addEventListener('load', () => {
 // Get performance data
 const data=getPerformanceMeasurements()
 -- {fcp:43,ttfp:65,windowLoad:321,domLoad:454}
});
},[])
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago