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

Report initial CLS value when reportAllChanges is true #283

Merged
merged 1 commit into from Nov 15, 2022
Merged

Conversation

philipwalton
Copy link
Member

This PR fixes #279 by ensuring that an initial CLS value of 0 is reported as soon as the page reaches FCP. For pages that don't set reportAllChanges to true, they shouldn't notice any change; however, for pages that do set reportAllChanges to true, they may see additional reports come in.

Note, I do not think this qualifies as a breaking change, because developers should not have been assuming a certain number of reports will be triggered on any particular page. It is possible this breaks some people's test pages, but it should not break anyone's real-world applications.

Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

There is no way to early-report zero-value CLS scores
2 participants