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

Tracking resources when the resourcetimingbuffer is full #412

Open
BenjaminHarding opened this issue Jun 17, 2021 · 0 comments
Open

Tracking resources when the resourcetimingbuffer is full #412

BenjaminHarding opened this issue Jun 17, 2021 · 0 comments
Assignees

Comments

@BenjaminHarding
Copy link
Contributor

Morning! Found this out recently and thought I'd share as it might be applicable :)

Browsers have a maximum number of PerformanceResourceTimings that they allow you to access via the window.performance.getEntries and window.performance.getEntriesByType API. From testing, I've found Firefox / Chrome this sits around 250 and for Safari this sits at like 150.

Note: PerformanceObservers for the most part don't have this limitation (but unless something has changed) this limitation is still in place.

This means if a browser reaches the resource buffer limit RUM would stop gathering resource timings and sending timings. Which is particularly useful for SPA applications.

There is a resourcetimingbufferfull event however that could be used along the clearResourceTimings to continue to get information.

@Widdershin Widdershin self-assigned this May 18, 2022
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

2 participants