1.0.8 • Published 2 years ago

@yigitysl/perfanalyticsjs v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

PerfAnalyticsJS

PerfAnalyticsJS is a client-side library, which collects some performance related key metrics from browser and sends to the PerfAnalyticsAPI

Acceptance Criterias

  • It does not harm clients performance
  • It should measure TTFB, FCP, Dom Load, and Window Load events
  • It should measure Network timings for Document, Image, Font, JS, and CSS
  • It should work on all modern browsers Except Microsoft Products
  • It should send performance metrics to API in a proper way.
  • It should be generic and can be used in any web application (big plus)
  • It should smaller than 3KB Gzip (big plus)

Installation

npm install @yigitysl/perfanalyticsjs

How to use

PerfAnalyticsJS is designed to be used in the browser. Import and construct, will send perforamance analyticts to PerfAnalyticsAPI. You can enable debug.

import PerfAnalytics from '@yigitysl/perfanalyticsjs'

const perfAnalytics = new PerfAnalytics({
  perfAnalyticsId: 'xxxxxxxxxxxx'
  // debug: true
})

or

<script async src="https://yy-perf-analytics-dashboard.herokuapp.com/PerfAnalytics.js"/>

window.PerfAnalyticsJS({
   perfAnalyticsId: 'xxxxxxxxxxxx',
 //  debug: true
})

Summary

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago