Expose TTFI/TTI to the web through the performance API
Categories
(Core :: DOM: Performance APIs, enhancement, P3)
Tracking
()
People
(Reporter: jesup, Unassigned)
References
Details
We have TTFI aka TimeToFirstCPUIdle internally; this is about whether we should calculate and expose TTI aka TimeToConsistentlyInteractive to the web via the performance API.
See https://github.com/WICG/time-to-interactive
and
https://github.com/WPO-Foundation/webpagetest/blob/master/docs/Metrics/TimeToInteractive.md#time-to-first-interactive-calculation
Updated•7 years ago
|
Comment 1•6 years ago
|
||
bdekoz suggested to audit other performance numbers (TimeToFirstCPUIdle, DOMContentLoaded, FirstContentfulPaint) and see how they correlate with TimeToConsistentlyInteractive, and if TimeToConsistentlyInteractive isn't meaningfully different than those three, we shouldn't add it. This is what I am going to do next.
Comment 2•6 years ago
|
||
Randell, can you please clarify what in gecko internals corresponds to TimeToFirstCPUIdle? Is there an equivalent for the networking parts, aka something along the lines of TimeToFirstNeworkIdle or TimeToNetworkComplete?
Updated•6 years ago
|
| Reporter | ||
Comment 3•6 years ago
|
||
We have TTFI which I think has been renamed timetofirstcpuidle (i.e. TTI without taking into account network connections).
We do not have the equivalent for network. We could add monitoring of the number of network connections from the document (I think), though I'm unsure exactly how much work it is (or how well specced TTI is for what counts and what doesn't -- long polls? WebSockets?....)
FCP won't be correlated with TTI. TTFI will be mostly correlated with TTI, but for some sites it will have a significant difference.
What's the state of the spec and likelihood it will go somewhere (or that we want to support the spec as-is or with specific changes)?
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•1 year ago
|
||
TTFI/TTI were never fully specced and it looks like they are removed from Lighthouse (in 2023). We now support INP and LCP instead. Let's close this as wontfix.
Description
•