互动时间与首次互动时间 CPU 空闲

Time to Interactive Vs First CPU Idle

互动时间与第一时间有什么区别CPU Idle.For 我在所有报告中的互动时间总是 > 第一时间 CPU 空闲。

谢谢, 拉吉

docs 将交互时间定义为:

The Time to Interactive (TTI) metric measures how long it takes a page to become interactive. "Interactive" is defined as the point where:

  • The page has displayed useful content, which is measured with First Contentful Paint.
  • Event handlers are registered for most visible page elements.
  • The page responds to user interactions within 50 milliseconds.

docs 定义 First CPU Idle 为:

The First CPU Idle metric measures when a page is minimally interactive:

  • Most, but maybe not all, UI elements on the screen are interactive.
  • The page responds, on average, to most user input in a reasonable amount of time.

不同之处在于,第一个 CPU 时间 衡量页面何时交互最少,而 交互时间 衡量如何页面变得互动需要很长时间。