w3c / performance-timeline

Performance Timeline
https://w3c.github.io/performance-timeline/
Other
111 stars 34 forks source link

Hard to feature-detect observe() parameters #176

Open npm1 opened 3 years ago

npm1 commented 3 years ago

Currently there are newer observe() parameters such as type and buffered but it's not easy to feature-detect them. The only way I can think of doing it is to call the method to observe within a try/catch to figure out if they are supported by the current user agent or not. It's not ideal.