Use MutationObserver where supported for performance etc #701