3 ms·
Weird. If browsers can detect these trackers, could an alternative be to just de-prioritize the trackers, so they load last and won't slow down page load time (
by solve 11y ago
Weird. If browsers can detect these trackers, could an alternative be to just de-prioritize the trackers, so they load last and won't slow down page load time (since I assume they're invisible anyway?)
- mbrubeck 11y agoThis should be doable for well-written trackers like Google Analytics that use script tags with the "async" attribute. In fact, those are probably already likely to load after the main content. For ads or trackers that are embedded as img or iframe elements, I think this is also viable and could speed up page load time. For ads or trackers that use inline scripts or non-"async" script tags to load content, the web browser has to block while loading/running the script, or risk breaking the page. Otherwise things like document.write() would have incorrect results when the script runs later.
- solve 11y agoSo does this FF mode that blocks them entirely also risk breaking the pages?
- mbrubeck 11y agoYes, it does, though for slightly different reasons. Mainly, it can break pages with first-party scripts that depend on blocked third-party scripts. I've encountered and reported a few of these while testing the feature.
- dm2 11y agoI wonder how difficult it would be to duplicate the Google Analytics object with blank functions for just such scenarios. Rather than "ga is undefined" the ga.whatever function would just return without sending any data. Do any third-party script blocking systems do this?