¹Get rid of as much crap ad HTML as possible. Ads seem to come layered in all manner of divs and iframes.
¹Get rid of as much crap ad HTML as possible. Ads seem to come layered in all manner of divs and iframes.
It also doesn't cause the browser to reapply the CSS over the whole page, which it needs to do when markup changes.
If there would be an option for a extension to hook into DOM element creation (i.e. when browser parses HTML and builds a tree, it'd call some user-defined predicate function) - that would possibly solve the issue.
I believe CSS is slow because of cascading nature - it requires re-compiling it from the very plaintext source on every page view, to combine ad-blocking rules with others - this certainly could be optimized (if browser side would provide tools for that). No idea about horrendous memory usage, though.