DescriptionThis will be especially useful after https://codereview.adblockplus.org/29714601/
Ads are almost never part of the original HTML, they're loaded dynamically via JS or by some other means. In that case, particularly for the top-level frame, there's no need to traverse the DOM for DOM-only patterns until there's a mutation. This way when a mutation occurs we can target the newly added nodes quickly instead of waiting for a full traversal. If we do this, ads will be hidden immediately instead of appearing momentarily before disappearing as they do now.
Patch Set 1 #Patch Set 2 : Check if it's the top frame #Patch Set 3 : Fix unrelated typo in comments #
Total comments: 3
MessagesTotal messages: 7
|