Similar to Web Standards, Lynx provides the Performance API for obtaining performance-related information in the current page.
Developers can use the Performance interface to retrieve various runtime performance data.
The following core concepts need to be understood when using the Performance API:
Entry Object
lynx.performance
is the entry object of the performance monitoring system, used to create performance observers.
Performance Observer
The PerformanceObserver
interface monitors various types of performance events.
Performance Events
Represented by PerformanceEntry
, containing basic information: event name
and entryType
.
All performance events (e.g., application initialization duration, page loading time) inherit from the PerformanceEntry
interface and extend additional properties.