@fastly/performance-observer-polyfill
Advanced tools
Comparing version 1.0.2-0 to 1.0.2
/*! | ||
* Performance Observer Polyfill | ||
* Version: 1.0.2-0 | ||
* Version: 1.0.2 | ||
* https://github.com/fastly/performance-observer-polyfill | ||
@@ -5,0 +5,0 @@ * |
{ | ||
"name": "@fastly/performance-observer-polyfill", | ||
"version": "1.0.2-0", | ||
"version": "1.0.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
/*! | ||
* Performance Observer Polyfill | ||
* Version: 1.0.2-0 | ||
* Version: 1.0.2 | ||
* https://github.com/fastly/performance-observer-polyfill | ||
@@ -5,0 +5,0 @@ * |
@@ -15,3 +15,3 @@ <h1 align="center" style="border-bottom: none;">🔎 PerformanceObserver Polyfill</h1> | ||
The polypill works by falling back to polling the Performance Timeline on a given interval and calling all subscribed observers with the resulting set of entires. | ||
The polyfill works by falling back to polling the Performance Timeline on a given interval and calling all subscribed observers with the resulting set of entires. | ||
@@ -60,3 +60,3 @@ ## Quick links | ||
## Caveats | ||
As the polypill implements the PerformanceObserver interface by falling back to polling the Performance Timeline via a call to `window.performance.getEntries()` we are limited to only expose timeline entry types that are supported by `getEntries()`. Therefore the polypill can only be used to observe the entry types: `navigation`, `resource` and `mark`. Newer entry types such as `paint` are only exposed by the native PerformanceObserver implementation and thus not polyfillable. | ||
As the polyfill implements the PerformanceObserver interface by falling back to polling the Performance Timeline via a call to `window.performance.getEntries()` we are limited to only expose timeline entry types that are supported by `getEntries()`. Therefore the polyfill can only be used to observe the entry types: `navigation`, `resource` and `mark`. Newer entry types such as `paint` are only exposed by the native PerformanceObserver implementation and thus not polyfillable. | ||
@@ -63,0 +63,0 @@ ## Development |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
564469