The addition of the 'type' member will allow passing in parameters specific to one entry type when calling observe() within PerformanceObserver. Right now, 'entryTypes' is used to specify potentially multiple entry types to be observed at the same time. An observer can only use 'entryTypes' or 'type'. An observer can only specify additional parameters when using 'type'. An observer can still observe multiple entry types by calling observe() with 'type' multiple times.
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 74
- Chrome for Android release 74
- Android WebView release 74
Consensus & Standardization
Last updated on 2020-11-09