Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how PerformanceTiming.responseStart relates to Early Hint responses #181

Open
colinbendell opened this issue Aug 31, 2022 · 5 comments

Comments

@colinbendell
Copy link

Should responseStart measure the time to first by for any response or only measure non-informational HTTP responses (specifically focused on HTTP status code >= 200)?

Currently the spec is ambiguous referring to "first byte of the response" which could be interpreted to include HTTP 103 Early Hints and other informational responses.

responseStart - the time immediately after the user agent receives the first byte of the response from the server

The responseStart is widely used to measure TTFB from the user's perspective. Measuring to the start of an Early Hint response can pollute this colloquial interpretation of this measurement. I would propose that responseStart should ignore informational responses (HTTP Header frames with a 1xx response code) and only relate to the first byte of an authoritative content response (HTTP >= 200)

@LPardue
Copy link

LPardue commented Aug 31, 2022

related: w3c/resource-timing#345

@nicjansma
Copy link

Discussed on 9/1 W3C WebPerf Call: w3c/resource-timing#345 (comment)

@clelland
Copy link
Contributor

This is probably blocked on w3c/resource-timing#345.

@adardesign
Copy link

TTFB is a broken metric at this point
Screenshot 2023-02-24 at 10 00 13 AM

@noamr
Copy link
Contributor

noamr commented Apr 24, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants