3 ms·
Good Idea. Unfortunately the underlying technique the author has used to achieve this (DOM mutation events) is flawed, deprecated and non-optimal. https://deve
by Vekz 14y 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 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.
- mistercow 14y agoBetter yet, detect and fallback.
- andrethegiant 14y agoCame here to say this. http://updates.html5rocks.com/2012/02/Detect-DOM-changes-with-Mutation-Observers http://updates.html5rocks.com/2012/02/Detect-DOM-changes-wit...