PerformanceObserverService

Wraps the PerformanceObserver API for monitoring performance entries such as LCP, FID, CLS, navigation timing, and resource loading metrics.

API Variant
TypeScriptexample.ts
import { PerformanceObserverService } from '@angular-helpers/browser-web-apis'

# Methods

MethodSignatureReturnsDescription
observeobserve(config: PerformanceObserverConfig): Observable<PerformanceEntryList>Observable<PerformanceEntryList>Public method observe.
observeByTypeobserveByType(type: PerformanceEntryType, buffered: any): Observable<PerformanceEntryList>Observable<PerformanceEntryList>Public method observeByType.
getSupportedEntryTypesgetSupportedEntryTypes(): PerformanceEntryType[]PerformanceEntryType[]Public method getSupportedEntryTypes.
LCP N/A
CLS N/A
INP N/A