Skip to content

Instantly share code, notes, and snippets.

@DAB0mB
Created July 21, 2019 10:45
Show Gist options
  • Save DAB0mB/6ed99b17e5a0fba382d30ba21b216034 to your computer and use it in GitHub Desktop.
Save DAB0mB/6ed99b17e5a0fba382d30ba21b216034 to your computer and use it in GitHub Desktop.
function observerCallback (mutations, observer) {
// Will cause more mutations
updateStyle(mutations)
// Will dispose pending mutations
observer.takeRecords()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment