Through lazy loading components, developers can render on demand, thereby improving user experience. LazyBundleEntry
is used to record the performance data of lazy loading components and inherits from PerformanceEntry
.
This example demonstrates how to obtain a LazyBundleEntry
.
The type of the performance event; the value for all instances of this class is fixed as resource
.
The name of the performance event; the value for all instances of this class is fixed as lazyBundle
.
The URL string used to load the lazy loading component.
The resource size of the lazy loading component, in bytes.
The mode for loading the lazy loading component, with values: preload
or normal
.
Whether the lazy loading component is rendered synchronously.
Whether the lazy loading component was loaded successfully.
The start timestamp for downloading the lazy loading component.This timestamp is a floating-point Unix timestamp (in milliseconds).
The end timestamp for downloading the lazy loading component.This timestamp is a floating-point Unix timestamp (in milliseconds).
The start timestamp for decoding the lazy loading component.This timestamp is a floating-point Unix timestamp (in milliseconds).
The end timestamp for decoding the lazy loading component.This timestamp is a floating-point Unix timestamp (in milliseconds).
LCD tables only load in the browser