Author Topic: YT, Firefox, Adblockers and huge lag  (Read 4124 times)

0 Members and 1 Guest are viewing this topic.

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
YT, Firefox, Adblockers and huge lag
« on: January 16, 2024, 12:40:34 am »
I hadn't been affected by YT's attempts to curb Adblocking so far. Been using Firefox for a long time, and never saw any issue (at least with the setups and Adblockers I use) until very recently. Just the past week or so.
I still do not see any ad and videos are not blocked or suspended, but I noticed the YT web interface has become ultra slow and laggy compared to just a few days earlier still.
YT may possibly deploy various strategies in different parts of the world. Dunno. I've read about that kind of sudden lag due to adblocking in various articles in last december, so I'm not the only one noticing.

Interestingly, I use Opera on mobile devices, with adblockers too, and didn't notice the same issue with this setup.

Anyone else noticed this newfound laggy UI?
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3667
  • Country: us
 
The following users thanked this post: SiliconWizard

Offline srb1954

  • Super Contributor
  • ***
  • Posts: 1092
  • Country: nz
  • Retired Electronics Design Engineer
Re: YT, Firefox, Adblockers and huge lag
« Reply #2 on: January 16, 2024, 01:20:12 am »
Even if you don't have an ad blocker YT seems to delay loading of content immediately after you skip an ad. There is quite often a buffering delay of 3-4 seconds after skipping an ad.

I have noticed this for the last couple of months and don't have any buffering delays with any other YT content.
 

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: YT, Firefox, Adblockers and huge lag
« Reply #3 on: January 16, 2024, 01:32:54 am »
Here this is a general lag in the whole YT web interface. It's not even just when you watch a video - actually in my case, once a video starts, it plays normally till the end. But everything is laggy, displaying comments, displaying thumbnails in the YT home page, etc. Noticed that when it lags, it takes CPU. So it must be something nasty in JS code, or they manage to bombard adblockers with stuff to process, making them in turn the source of lag - it's not just "network" delays, the lag definitely comes with extra CPU use.
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: YT, Firefox, Adblockers and huge lag
« Reply #4 on: January 16, 2024, 01:48:24 am »
I believe Louis Rossmann just released a video about it
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7747
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #5 on: January 16, 2024, 02:32:20 am »
With or without ad blockers, there have been random delays for years now.  (Not counting the proven found deliberate 5-10 seconds delay code introduced for a few months at the end of last year)  The current delays are just random traffic errors or potentially problems with how the AD-Blocker works itself, otherwise, I wouldn't be able to play videos faithfully over the past ~4 months in FireFox.

As for things getting worse, try playing YT videos in a 'Private Window' and see if anything improves.
Note that you will not be able to comment or leave a thumbs up/down.

Also, make sure your AD-blocker is configured to be enabled for private-windows.
« Last Edit: January 16, 2024, 02:36:08 am by BrianHG »
 

Offline chickenHeadKnob

  • Super Contributor
  • ***
  • Posts: 1056
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #6 on: January 16, 2024, 03:08:39 am »
Here this is a general lag in the whole YT web interface. It's not even just when you watch a video - actually in my case, once a video starts, it plays normally till the end. But everything is laggy, displaying comments, displaying thumbnails in the YT home page, etc. Noticed that when it lags, it takes CPU. So it must be something nasty in JS code, or they manage to bombard adblockers with stuff to process, making them in turn the source of lag - it's not just "network" delays, the lag definitely comes with extra CPU use.
I noticed exactly this. All interface elements super slow. I run FireFox/linux 121.0.1. I thought it might be some crappy javascript hogging cpu, didn't investigate further and simply reset my machine and the problem cleared. My machine had been up for about two weeks.
 

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: YT, Firefox, Adblockers and huge lag
« Reply #7 on: January 16, 2024, 03:22:12 am »
I believe Louis Rossmann just released a video about it

Yes:


 

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: YT, Firefox, Adblockers and huge lag
« Reply #8 on: January 16, 2024, 03:36:58 am »
And Louis makes a good point, whatever you think about YT's battle against adblockers, their move to "silently" make it worse for adblock users without even any explicit mention of it on the website is completely dumb. As a "normal" user, you have absolutely no means of knowing for good that actually paying them or watching their stupid ads will get you a better experience. People are just talking about it as a rumor, and them throwing in hints here and there. For all you know, it may just be speculation, a problem with your ISP, a temporary problem with YT, or a problem with your browser. That's just a wicked business move. If they weren't in a situation of near-monopoly, they would never pull off something like that.

But with this, just like with the way they censor videos and comments, it's questionable move after questionable move, with a 100% lack of transparency.

Just put a fricking banner over every YT web page and video if you detect an adblocker, if you have balls. ;D
Then we'll know clearly what it's all about.
 
The following users thanked this post: Ed.Kloonk

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9954
  • Country: nz
Re: YT, Firefox, Adblockers and huge lag
« Reply #9 on: January 16, 2024, 03:39:42 am »
yeah, i've noticed this too, extreme lag, mainly when trying to type a comment into Youtube.
but loading pages was also a bit slow.

The annoying thing is that I have Youtube Premium but i guess their adblocker detection doesn't take this into account.
Disabled addblocker and the lag disappeared.
Greek letter 'Psi' (not Pounds per Square Inch)
 
The following users thanked this post: SiliconWizard

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7747
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #10 on: January 16, 2024, 06:35:20 am »
YT is now wasting my battery power on my laptop and makes it's CPU fan run at full speed.
No more 9 hour battery life watching Youtube videos as it's power consumption has gone through the roof.
Only a few windows open doing nothing and 2 cores are nailed at 100% usage.
Only around 45 minute battery life with too many windows open without even playing the videos.
Proof Google is against saving the planet's ecology by wasting CPU cycles.

I wonder if mac-book runs firefox and if this will kill their +12hour battery life?

(Note this occasionally happens when Firefox slows down, but once it begins, only closing and reopening firefox fixes the CPU usage issue)
« Last Edit: January 16, 2024, 06:43:49 am by BrianHG »
 
The following users thanked this post: Ed.Kloonk, SiliconWizard

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: YT, Firefox, Adblockers and huge lag
« Reply #11 on: January 16, 2024, 07:18:10 am »
Having done some more testing on this, I think it definitely comes down to Javascript code (that of course runs locally) which deliberately slows down some operations, wasting CPU cycles along the way (so not even just clean "waits" that would just suspend execution for a little while.) Nice job. The good news with this is that if it's just JS code running locally, then it should not be too hard to find countermeasures. (And this would be explained by the fact that there is actually little they could do on their "end", as we had discussed in an earlier thread, so they basically have to resort to local "measures". At least, that's my conclusion this far.)

Firefox has a profiling feature, you can go to about:processes, and for a given tab, you can have it profile it for 5 s. The profiling is not ultra detailed, but it for sure shows that most of the CPU time is spent on JS execution.
Oh, and the JS scripts appear to be downloadable. I've just had a look at a couple - there is one which is called 'scheduler.js', which seemed promising. The source code of it is of course somewhat "obfuscated", but I'm sure some people will be happy to have a closer look. I'm not sure YT have been that smart with all this. Fun.
 
The following users thanked this post: Ed.Kloonk

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5129
  • Country: nl
Re: YT, Firefox, Adblockers and huge lag
« Reply #12 on: January 16, 2024, 09:48:36 am »
If you are using Adblock (Plus), there's a bug that causes this behavior and is currently being worked on: https://gitlab.com/adblockinc/ext/adblockplus/adblockplusui/-/issues/1576#note_1727415603

It's not YT and it's not just YT: https://twitter.com/gorhill/status/1746263759495077919



Keyboard error: Press F1 to continue.
 
The following users thanked this post: BrianHG

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19522
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: YT, Firefox, Adblockers and huge lag
« Reply #13 on: January 16, 2024, 10:36:06 am »
YT is now wasting my battery power on my laptop and makes it's CPU fan run at full speed.
No more 9 hour battery life watching Youtube videos as it's power consumption has gone through the roof.
Only a few windows open doing nothing and 2 cores are nailed at 100% usage.
Only around 45 minute battery life with too many windows open without even playing the videos.
Proof Google is against saving the planet's ecology by wasting CPU cycles.

You should thank gurgle for encouraging you to reclaim your life :)

No more look-at-me talking-head videos full of ums/ahs etc that take 30mins of your life before you realise you aren't going to learn anything. Much better to only spend 30s speed-reading text before you realise that.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9954
  • Country: nz
Re: YT, Firefox, Adblockers and huge lag
« Reply #14 on: January 16, 2024, 12:12:58 pm »
If you are using Adblock (Plus), there's a bug that causes this behavior and is currently being worked on: https://gitlab.com/adblockinc/ext/adblockplus/adblockplusui/-/issues/1576#note_1727415603

It's not YT and it's not just YT: https://twitter.com/gorhill/status/1746263759495077919

Hm.. true, i am using plus.
Seems I was too quick to blamed google.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3177
  • Country: es
Re: YT, Firefox, Adblockers and huge lag
« Reply #15 on: January 16, 2024, 05:30:28 pm »
I use Brave browser (per Louis Rossman's advice) and have not noticed anything.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7770
  • Country: de
  • A qualified hobbyist ;)
Re: YT, Firefox, Adblockers and huge lag
« Reply #16 on: January 16, 2024, 05:49:28 pm »
No issues with uBlock either. It's just Adblock.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2221
  • Country: 00
Re: YT, Firefox, Adblockers and huge lag
« Reply #17 on: January 16, 2024, 06:03:52 pm »
No problems here with Firefox & uBlock Origin on Linux.
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2439
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #18 on: January 16, 2024, 06:35:12 pm »
I have no idea if YT is playing around but if I was going to it would live under the auto streaming speed. The error message has lived there forever and most have seen it.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: YT, Firefox, Adblockers and huge lag
« Reply #19 on: January 16, 2024, 06:55:40 pm »
Just put a fricking banner over every YT web page and video if you detect an adblocker, if you have balls. ;D
That is exactly what Youtube is showing me.... But I don't care. ABP will find a way around eventually. This is another lost battle from the entertainment industry. I've been on internet for about 30 years and the entertainment industry still hasn't stopped people from sharing music. It must have cost them billions of dollars by now. Likely more than the perceived loss of revenue.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7747
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #20 on: January 16, 2024, 07:58:43 pm »
YT is now wasting my battery power on my laptop and makes it's CPU fan run at full speed.
No more 9 hour battery life watching Youtube videos as it's power consumption has gone through the roof.
Only a few windows open doing nothing and 2 cores are nailed at 100% usage.
Only around 45 minute battery life with too many windows open without even playing the videos.
Proof Google is against saving the planet's ecology by wasting CPU cycles.

You should thank gurgle for encouraging you to reclaim your life :)

No more look-at-me talking-head videos full of ums/ahs etc that take 30mins of your life before you realise you aren't going to learn anything. Much better to only spend 30s speed-reading text before you realise that.
:(  I have an unusual form of mild Dyslexia making my reading 4x slower than the normal populous...
Also, watching talking heads about things you already know means you are very poorly using youtube.
« Last Edit: January 16, 2024, 08:11:31 pm by BrianHG »
 

Offline Veteran68

  • Frequent Contributor
  • **
  • Posts: 727
  • Country: us
Re: YT, Firefox, Adblockers and huge lag
« Reply #21 on: January 16, 2024, 09:00:33 pm »
The annoying thing is that I have Youtube Premium but i guess their adblocker detection doesn't take this into account.
Disabled addblocker and the lag disappeared.

If you are using Adblock (Plus), there's a bug that causes this behavior and is currently being worked on: https://gitlab.com/adblockinc/ext/adblockplus/adblockplusui/-/issues/1576#note_1727415603

I'm also a YT Premium subscriber and I run ABP as well, but have not really seen any of the issues mentioned. Granted I seldom comment on a video, but I'm on YT literally every single day and it has been performing normally for me. I'm not at home now so can't be sure, but I may have "whitelisted" YT in ABP so it doesn't actually try to block anything there. Maybe that's why?

 

Online SiliconWizardTopic starter

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: YT, Firefox, Adblockers and huge lag
« Reply #22 on: February 01, 2024, 11:25:00 pm »
This is a constant battle between YT and Adblockers for now.
Yes, Adblock+ was the source of the lag, yes, they released a "fix" that somewhat improved things for a while, but they seem to be back to bad now.
I'm pretty sure my hypothesis was right, YT is just trying to bombard adblockers with stuff to process just to make things go to a crawl. So adblockers have to adapt to prevent that, but it becomes increasingly tough not to have any performance impact.

The most horrific at the moment is the lag while typing comments. It's fun how YT's countermeasures affect commenting. Is it a byproduct of their countermeasures, or explicitely made to annoy users (assuming that not letting them comment would be what they would find most annoying? who knows what's in their twisted minds.)

Anyway, long story short, for anyone who hasn't seen it yet, just look at that: https://support.google.com/youtube/answer/14129599
The statement looks pretty clear. It's not just that YT will make the experience "suboptimal" for users of adblockers - it's that they claim it's a violation of their TOS. This is a pretty strong statement IMHO.
Quote
When you block YouTube ads, you violate YouTube’s Terms of Service.
 
The following users thanked this post: wraper

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2221
  • Country: 00
Re: YT, Firefox, Adblockers and huge lag
« Reply #23 on: February 02, 2024, 07:28:52 am »
I still don't have any problems watching youtube. No delays, no adds.
But I don't login and I don't comment (I don't even have an account) and
I use Firefox & Ublock Origin & Privacy Badger & Cookie Autodelete on top of GNU/Linux.
 

Offline chickenHeadKnob

  • Super Contributor
  • ***
  • Posts: 1056
  • Country: ca
Re: YT, Firefox, Adblockers and huge lag
« Reply #24 on: February 02, 2024, 09:37:03 am »
Tis is a constant battle between YT and Adblockers for now.

The most horrific at the moment is the lag while typing comments. It's fun how YT's countermeasures affect commenting. Is it a byproduct of their countermeasures, or explicitely made to annoy users (assuming that not letting them comment would be what they would find most annoying? who knows what's in their twisted minds.)

I am convinced that youtube has an "adaptive annoyance" algorithm. That is they monitor keyboard and mousing to look for negative reactive events and specifically how fast they occur.
The  reason I say this is that I have noticed sometimes they ask me to rank "how has your add experience been lately" whilst at the same time filling the add stream with adds they know will annoy me, partly through how fast I am to skip but also they know everyone hates these particular adds. I am taking about interminably long investment, crypto or medical scam adds. You know the type, "try this one weird trick/secret and you will make millions" but they go on and on and never get to what they are selling. For curiosities sake I let one investment scam play and it was still going an hour later! still not finished, still no idea exactly what was going to be pitched at me. I think it was for a mining stock prospectus. Oh and additional add type is for these crappy games. I have an android phone. Google damn well knows I don't play any games and for that matter don't ever download paid apps from the google play store.

Then after about a week to 10 days of annoying me youtube starts to heavily pitch premium at me. A few days later they give up and the add stream goes back to something I might normally go for like pick-up trucks or food items.

This kind of hot-cold good-cop/bad-cop technique  is what narcissists and psychopaths use to manipulate victims.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf