1.0.6 • Published 3 years ago

web_performance_collector v1.0.6

Weekly downloads
14
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago