极客时间返利平台,你可以在上边通过山月的链接购买课程,并添加我的微信 (shanyue94) 领取返现。

# 如何计算白屏时间和首屏时间

Issue

欢迎在 Gtihub Issue 中回答此问题: Issue 469 (opens new window)

Author

回答者: hhhpw (opens new window)

白屏时间: window.performance.timing.domLoading - window.performance.timing.navigationStart

首屏时间: window.performance.timing.domInteractive - window.performace.timing.navigationStart

Author

回答者: wuyuehui (opens new window)

首屏时间: window.performance.timing.domInteractive - window.performace.timing.navigationStart

window.performace.timing.navigationStart

performace -> performance 少了个 n

Last Updated: 2/15/2022, 12:06:24 PM