![](/static/f6173ead/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/d3d059e3-fa3d-45af-ac93-ac894beba378.png)
uBlock Origin just prevents the network requests from these tracking frameworks from completing. All the javascript tracking code I believe still executes, just doesn’t return.
If it were possible it would be great to prevent these javascript frameworks from being loaded at all by the browser. But I guess the website javascript code would break.
It would be interesting to replace the tracking frameworks with an empty stubbed out implementation that does nothing. Not for sure how feasible that would be.
I was actually trying to do some research on this as well to verify my claim, but couldn’t find a definitive answer. I’m not for sure whether uBlock blocks complete JavaScript libraries from loading by default or if it is only blocks the HTTP request like PiHole.
I did find this interesting project by DuckDuckGo which provides empty implementations of the JavaScript libraries when adblockers break the site. This seems to imply that some adblockers do prevent the JavaScript library from loading at all.
https://github.com/duckduckgo/tracker-surrogates