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

Add batch reporting support and guidance #166

Merged
merged 1 commit into from
Jul 1, 2021
Merged

Add batch reporting support and guidance #166

merged 1 commit into from
Jul 1, 2021

Conversation

philipwalton
Copy link
Member

This PR fixes #165 by reporting any pending metrics during the pagehide event (in addition to the visibilitychange event). It also adds an example in the README showing the recommended way to do batch reporting with this library.

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.

Batch reporting is difficult due to when CLS reports are dispatched
1 participant