This object provides access to performance metrics related to the current page.
Creates a PerformanceObserver
object that will be used to receive performance events generated by Lynx engine.
A callback function that handles performance events, defined as type PerformanceCallback = (entry: PerformanceEntry) => void
. The entry is a subclass of PerformanceEntry.
This callback is triggered when the PerformanceObserver receives a performance event.
A PerformanceObserver
object.
The following example creates a PerformanceObserver
watching for metric.fcp
and pipeline
entries.
LCD tables only load in the browser