InitContainerEntry

The InitContainerEntry interface documents key moments related for the container preparation work before the Lynx page is displayed. It inherits from PerformanceEntry.

In the initialization process, the metrics are defined as shown in the figure below: key moments of container initialization

INFO

The key moments provided by this entry rely on the container through LynxView.setExtraTiming provision.

Examples

This example demonstrates how to retrieve InitContainerEntry

Instance properties

entryType

entryType: string;

Returns the entry type, which is always init.

name

name: string;

Returns the entry name, which is always container.

openTime

openTime: number;

The time when the container starts loading a Lynx page。This timestamp is a floating-point Unix timestamp (in milliseconds), accurate to three decimal places. For example: 1739594612307.429.

containerInitStart

containerInitStart: number;

The time when the container initialization starts. This timestamp is a floating-point Unix timestamp (in milliseconds), accurate to three decimal places. For example: 1739594612307.429.

containerInitEnd

containerInitEnd: number;

The time when the container initialization completes. This timestamp is a floating-point Unix timestamp (in milliseconds), accurate to three decimal places. For example: 1739594612307.429.

prepareTemplateStart

prepareTemplateStart: number;

The time when the container starts preparing the TemplateBundle. "Preparing" means obtaining the TemplateBundle via network download, loading local cache, or any other method. This timestamp is a floating-point Unix timestamp (in milliseconds), accurate to three decimal places. For example: 1739594612307.429.

prepareTemplateEnd

prepareTemplateEnd: number;

The time when the container finishes preparing the TemplateBundle. "Preparing" means obtaining the TemplateBundle via network download, loading local cache, or any other method. This timestamp is a floating-point Unix timestamp (in milliseconds), accurate to three decimal places. For example: 1739594612307.429.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.