For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-api/performance-api/performance-entry/lazy-bundle-entry.md.
Lynx
  • 简体中文
  • LazyBundleEntry

    通过懒加载组件,开发者可以按需进行渲染,从而提升用户体验。LazyBundleEntry 用来记录懒加载组件的性能数据,它继承自 PerformanceEntry

    Example

    该示例展示了如何获取 LazyBundleEntry

    实例属性

    entryType

    entryType: string;

    性能事件的类型,当前类所有实例的值均固定为 resource

    name

    name: string;

    性能事件的名称,当前类所有实例的值均固定为 lazyBundle

    componentUrl

    componentUrl: string;

    用于加载懒加载组件的 URL 字符串。

    size

    size: number;

    懒加载组件的资源大小,单位为 Byte。

    mode

    mode: string;

    加载懒加载组件的模式,取值为: preloadnormal

    sync

    sync: boolean;

    懒加载组件是否是同步渲染。

    loadSuccess

    loadSuccess: boolean;

    加载懒加载组件是否成功。

    requireStart

    requireStart: number;

    下载懒加载组件的开始时间戳。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒)。

    requireEnd

    requireEnd: number;

    下载懒加载组件的结束时间戳。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒)。

    decodeStart

    decodeStart: number;

    懒加载组件解码的开始时间戳。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒)。

    decodeEnd

    decodeEnd: number;

    懒加载组件解码的结束时间戳。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒)。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。