← Back to release summary

PerformanceObserver takeRecords()

Category
Performance
Type
New or changed feature
Status
Enabled by default (Chrome 65)
Intent stage
None

Summary

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.

Standards & signals

View on chromestatus.com