Skip to content

Instantly share code, notes, and snippets.

@jakub-g
Last active March 22, 2021 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakub-g/86e85a8b82770ff48444833ec8e99cb1 to your computer and use it in GitHub Desktop.
Save jakub-g/86e85a8b82770ff48444833ec8e99cb1 to your computer and use it in GitHub Desktop.
PerformanceObserver.supportedEntryTypes

Test query

({a: window.PerformanceObserver.supportedEntryTypes, b: window.PerformancePaintTiming, c: navigator.userAgent})

Safari

A TP blog says shipped in TP75 which would mean 12.1 stable but I tested in 12.1 and it's not true. It returns undefined. So I asssume 13.0 (I don't have 13.0 to test).

Also I always get empty array on iOS, but maybe it'a an issue with BrowserStack.

12.1 undefined
13.0-14.0 ["mark", "measure", "resource"] 

Chrome

73: https://www.chromestatus.com/feature/6737857909620736 77: https://www.chromestatus.com/feature/5149663191629824 but I observed firstInput in 76 85: https://www.chromestatus.com/feature/5167290693713920

73:  6 ["longtask", "mark", "measure", "navigation", "paint", "resource"]
76:  7 ["firstInput", "longtask", "mark", "measure", "navigation", "paint", "resource"]
78-84: 10 ["element", "first-input", "largest-contentful-paint", "layout-shift", "longtask", "mark", "measure", "navigation", "paint", "resource"]
85-89: 11 ["element", "event", "first-input", "largest-contentful-paint", "layout-shift", "longtask", "mark", "measure", "navigation", "paint", "resource"]

Firefox

this bug says 66 but it's not true (maybe was behind the flag) https://bugzilla.mozilla.org/show_bug.cgi?id=1512225

67 no support for API `PerformanceObserver.supportedEntryTypes`
68-83 [ "mark", "measure", "navigation", "resource" ]
84-86 [ "mark", "measure", "navigation", "paint", "resource" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment