Skip to content

Instantly share code, notes, and snippets.

@BrockReece
Last active February 8, 2018 22:31
Show Gist options
  • Save BrockReece/fbda03b762b717063e7ba5f613a4556e to your computer and use it in GitHub Desktop.
Save BrockReece/fbda03b762b717063e7ba5f613a4556e to your computer and use it in GitHub Desktop.
const observer = new PerformanceObserver(list => {
list.getEntries().forEach((entry) => {
//handle each performance mark
})
})
observer.observe({ entryTypes: [ 'mark', 'measure'] })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment