Lynx Pipeline defines the complete process from triggering the rendering to displaying it on the screen. If you care about rendering performance of certain key components, you can set the component’s __lynx_timing_flag property to mark its Lynx Pipeline and monitor its performance.
When the flagged Lynx Pipeline finishes and the screen is refreshed, a PipelineEntry performance event is generated. You can obtain it via PerformanceObserver.
__lynx_timing_flag attribute must be a non-empty string. Empty values or invalid types will not trigger PerformanceObserver callbacks.__lynx_timing_flag attribute value is __lynx_timing_actual_fmp, an additional MetricActualFmpEntry performance event is generated.__lynx_timing_flag attribute on the target component. When the node finishes rendering, the framework automatically collects performance data for its Lynx Pipeline.PerformanceObserver) via lynx.performance.createObserver() to receive the corresponding performance data (PipelineEntry).
__lynx_timing_flag attributeIn this case, only the Lynx Pipeline data of the first component that appears on screen will be recorded:
ActualFMP once and send one MetricActualFmpEntry.PipelineEntry.If you want to record the moment when both components finish rendering, use different __lynx_timing_flag values.
In this scenario, only the Lynx Pipeline data for the component’s first appearance is recorded:
ActualFMP once and send one MetricActualFmpEntry.PipelineEntry.If you need to measure each render individually, implement as follows:
LCD tables only load in the browser