General > General Technical Chat

YT, Firefox, Adblockers and huge lag

<< < (3/11) > >>

BrianHG:
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)

SiliconWizard:
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.

PA0PBZ:
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



tggzzz:

--- Quote from: BrianHG 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.

--- End quote ---

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.

Psi:

--- Quote from: PA0PBZ 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

--- End quote ---

Hm.. true, i am using plus.
Seems I was too quick to blamed google.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod