Workaround for Mozilla's ridiculously slow MutationObserver