This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Note: This feature is available in Web Workers.
The static supportedEntryTypes read-only property of the PerformanceObserver interface returns an array of the entryType values supported by the user agent.
As the list of supported entries varies per browser and is evolving, this property allows web developers to check which are available.
An array of PerformanceEntry.entryType values.
To find out which entryType values a browser supports, enter PerformanceObserver.supportedEntryTypes into the console. This will return an array of supported values.
PerformanceObserver.supportedEntryTypes; // returns ["element", "event", "first-input", "largest-contentful-paint", "layout-shift", "long-animation-frame", "longtask", "mark", "measure", "navigation", "paint", "resource", "visibility-state"] in the main thread in Chrome 129 // returns ["mark", "measure", "resource"] in a worker thread in Chrome 129
The following function checks for support of an array of possible entry types. The unsupported types are logged to the console, however this information could be logged to client-side analytics to indicate that the particular type could not be observed.
function detectSupport(entryTypes) {
for (const entryType of entryTypes) {
if (!PerformanceObserver.supportedEntryTypes.includes(entryType)) {
console.log(entryType);
}
}
}
detectSupport(["resource", "mark", "first-input", "largest-contentful-paint"]);
| Specification |
|---|
| Performance Timeline> # supportedentrytypes-attribute> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
supportedEntryTypes_static |
73 | 79 | 68 | 60 | 13 | 73 | 68 | 52 | 13 | 11.0 | 73 | 13 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/supportedEntryTypes_static