0x48piraj / fadblock

Friendly Adblock for YouTube: A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera and Firefox.
2.39k stars 110 forks source link

Extension slowing down the website #56

Open s0upmandev opened 10 months ago

s0upmandev commented 10 months ago

I've noticed that ever since installing this extension, it has slowed down Youtube significantly, even crashing on multiple occasions

0x48piraj commented 10 months ago

Yes, there have been some compatibility and performance issues lately with the new API only for Firefox users.

As of now I am applying a quick monkey-patch to fix the issue while investigating the cause for this.

ericbig66 commented 10 months ago

I think there are also problems in chrome, it takes about 5~10 seconds just to load the page, and start to play video at about 15 second, also shrot experience are ruined, due to the lag of loading, it would be lag for about 2~3 second after scroll to next video, maybe try to just add a feature to disable ad block on Shorts, though it would have ad between shorts, but smoother short experience is more important, currently my solution is constantly delete cookies generated by YT to speed up the loading process.. By the way my Internet speed is not slow at all, ping is about 6 ms, with 275Mbps DL and 93Mbps UL

0x48piraj commented 10 months ago

FadBlock doesn't use any cookies but that's a good idea, disabling ad blocks on shorts. I'll look into that, but first, 2.0 is going to release on Chrome and I want to know if the new API reduces any load time or not before working on performance optimizations.

0x48piraj commented 9 months ago

As all of you might be aware, YouTube is injecting a lot of DOM and custom scripts to detect adblockers which in turn are slowing their own website. [1], [2] and many more.

I am working on some optimizations but it will need some testing as it can be a breaking change and the userbase is very volatile right now (thankfully the v2.6 is working smoothly as it seems) so I have delayed the patch for two updates.

As reported in other threads, once YouTube is loaded, the lag should go away significantly. All in all, it's mostly YouTube's own doing.