Use case: as a developer I want to flush and beacon all pending records when page visibility changes (e.g. transitions to 'hidden') or is about to be unloaded. Today, this is not possible.
To stay consistent with other <*>Observer patterns, we should support takeRecords():
Related discussion in https://github.com/w3c/performance-timeline/issues/66.
Use case: as a developer I want to flush and beacon all pending records when page visibility changes (e.g. transitions to 'hidden') or is about to be unloaded. Today, this is not possible.
To stay consistent with other
<*>Observer
patterns, we should supporttakeRecords()
: