Closed esprehn closed 9 years ago
ex. https://w3c.github.io/performance-timeline/#h-introduction
has:
var observedEvents = []; var observer = new PerformanceObserver(function(list) { observedEvents.push(list); // defer processing }); // subscribe to Frame-Timing and User-Timing events observer.observe({eventTypes: ['render', 'composite', 'mark', 'measure']}); observer.disconnect(); }
which disconnects immediately after observing which means you should get nothing delivered.
Better?
ex. https://w3c.github.io/performance-timeline/#h-introduction
has:
which disconnects immediately after observing which means you should get nothing delivered.