createObserver()
Creates a
PerformanceObserver
object that will be used to receive performance events generated by Lynx engine.
Syntax
Parameters
callback
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.
Return Value
A PerformanceObserver object.
Examples
The following example creates a PerformanceObserver watching for metric.fcp and pipeline entries.

Compatibility
LCD tables only load in the browser