Hacker News new | ask | show | jobs
by Vekz 5014 days ago
Good Idea. Unfortunately the underlying technique the author has used to achieve this (DOM mutation events) is flawed, deprecated and non-optimal.

https://developer.mozilla.org/en-US/docs/DOM/Mutation_events

"Adding DOM mutation listeners to a document profoundly degrades the performance of further DOM modifications to that document (making them 1.5 - 7 times slower!). Moreover, removing the listeners does not reverse the damage."

Using the modern DOM mutation observers may be a better solution.

2 comments

Better yet, detect and fallback.