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

Include TTFB attribution data in the LCP attribution object #526

Open
rviscomi opened this issue Aug 29, 2024 · 0 comments
Open

Include TTFB attribution data in the LCP attribution object #526

rviscomi opened this issue Aug 29, 2024 · 0 comments

Comments

@rviscomi
Copy link
Member

The answer to "why was my LCP slow" can sometimes be found in the sub-TTFB diagnostics, so it'd be useful for that data to be available in the LCP attribution object. This would ensure that the data can be included in the same analytics payload as the rest of the LCP info, avoiding the need to join the records on the backend if TTFB and LCP were sent separately. While the raw navigation entry is already made available, and the attribution logic is pretty straightforward, it still seems redundant for the client to do that work in the LCP handler.

There could be a new timeToFirstByteAttribution property added to LCP's attribution object, whose value could be the five duration properties provided by TTFB attribution, i.e. everything except for navigationEntry.

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

1 participant