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

Only report CLS when FCP is reported #154

Merged
merged 1 commit into from May 28, 2021
Merged

Only report CLS when FCP is reported #154

merged 1 commit into from May 28, 2021

Conversation

philipwalton
Copy link
Member

This PR updates the work done in #149 to only report CLS if the page also reported FCP.

The downside of this change is measuring CLS now includes a dependency on the FCP logic (even for developers not monitoring FCP directly). The benefit, though, is that it better aligns with the current behavior of CrUX.

The goal of this library is to align with CrUX as much as possible, so the additional dependency is necessary to achieve the best alignment.

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

Successfully merging this pull request may close these issues.

None yet

1 participant