perf-observer-kit
Version:
A lightweight, flexible library for monitoring web performance metrics including Core Web Vitals, resource loading performance, long tasks, and navigation timing.
18 lines (17 loc) • 450 B
TypeScript
/**
* Utility functions to check browser support for performance APIs
*/
export declare const browserSupport: {
/**
* Check if the Performance API is supported
*/
hasPerformanceAPI(): boolean;
/**
* Check if PerformanceObserver is supported
*/
hasPerformanceObserver(): boolean;
/**
* Check if a specific performance entry type is supported
*/
supportsEntryType(entryType: string): boolean;
};