mywot / firefox-xul

WOT's current XUL-based Firefox extension
http://www.mywot.com/wiki/Firefox
GNU General Public License v3.0
2 stars 8 forks source link

Avoid listening for DOM mutations on document #16

Closed sorgoz closed 12 years ago

sorgoz commented 12 years ago

DOM mutation events profoundly degrade performance, and that degradation is not reversed by removing the listeners. We can't allow mutation listeners except when they're absolutely necessary, and never for the top-level browser document. Please see https://developer.mozilla.org/en/XUL_School/Appendix_F:_Monitoring_DOM_changes for more information.