2 ms·
That's not going to work if everything runs via https. How exactly do most ad-blockers work? Are they searching the DOM and blocking elements from showing? Or
by chris_wot 11y ago
That's not going to work if everything runs via https.
How exactly do most ad-blockers work? Are they searching the DOM and blocking elements from showing? Or can they see that there are asychronous requests being made from JavaScript to known ad networks?
I'm musing out loud here, but take for instance the Sydney Morning Herald - the sheer number of trackers is extraordinary. The full load of just the main page, and images are reasonably light, is about 8MB... and there are literally dozens of trackers.
How do ad-blockers prevent these from appearing?
- uxp 11y agoThey usually bind to events the browser triggers before a network request is made. This lets them literally block the browser from downloading any content from a source that may register your IP just from the connection (pixel tracking, etc). Searching the DOM and removing elements would still require a network request to obtain the content before realizing that it's a tracked element. By blocking the request from happening, we can truly say that an Content Blocker on iOS (for instance) speeds up the browsing experience because the request isn't even initiated.