The takeRecords method returns a copy of the performance entries in the PerformanceObserver’s buffer, and also clears this buffer. This aligns PerformanceObserver with other *Observer implementations, like MutationObserver and IntersectionObservers, which have similar methods.
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 65
- Chrome for Android release 65
Consensus & Standardization
Last updated on 2020-11-09