Live data from Hacker News

YouTube slows down video load times when using Firefox

old.reddit.com

81–90 of 486 posts

Re: YouTube slows down video load times when using Firefox

#81

Earlier quoted context omitted.

Just install adblocker?

Meh.. I could but I have to tolerate them on TV anyway. I may look to install pi-hole one day.

pihole doesnt work for youtube because ads and content are served from the same domains.

Re: YouTube slows down video load times when using Firefox

#82
Code generally does not enter the YouTube code base without a lot of review namely (1) performance tests and (2) code reviews from multiple teams. Lines like this almost certainly get flagged/increased scrutiny. It would be very hard to imagine multiple people didn’t know about this and assign the blame to a single person.

Re: YouTube slows down video load times when using Firefox

#83

I am not getting this behaviour in Firefox 120. Tried it, logged out as well. > setTimeout(function() { c(); a.resolve(1) }, 5E3); The code looks like a silly concurrency bug fix, i.e., a lazy way to force ordering.

I can't believe billion dollar companies 'solve' bugs the same way as i do

Re: YouTube slows down video load times when using Firefox

#84
post #39

I have a hard time believing that's actually what's happening. If they wanted to slow down other browsers, why would they choose this easily discoverable way? They could have easily slowed down serving of JS files (and other assets) based on the user agent to a similar effect. It seems more likely this is just a debug snippet that has made it into production by accident.

If I was working at Google and I was tasked with doing that, I'd half ass it too

I mean it could be that the programmer wanted it to be discovered to draw attention to Google managers' shenanigans but that seems kind of far fetched.

Re: YouTube slows down video load times when using Firefox

#85
post #5

I have been getting this same slow-down for a month or two, but using Brave - which is the same user-agent as Chrome. I would imagine changing the user-agent at all will (temporarily) fix it, rather than to a Chrome user-agent specifically. Probably targets ad blocking users rather than non-Chrome users.

Huh, I nearly exclusively use Brave for YouTube because it does a good job blocking ads and I haven’t noticed any slowdown.

I did see the ad nag once when I accidentally went to YouTube in safari

Re: YouTube slows down video load times when using Firefox

#86

Earlier quoted context omitted.

This is interesting as I had noticed this happening to me (in Chrome) when the anti-ad-blocking started. I assumed that it was YT's way of "annoying" me still while no ads were shown... It was eventually replaced with the "You cant use Adblockers modal" and now I just tolerate the ads. So I wonder if that 5s delay has always been there.

Just install adblocker?

[deleted]

Re: YouTube slows down video load times when using Firefox

#87

From reddit discussion ( https://www.reddit.com/r/firefox/comments/17ywbjj/comment/k9... ): > To clarify it more, it's simply this code in their polymer script link: > setTimeout(function() { c(); a.resolve(1) }, 5E3); > which doesn't do anything except making you wait 5s (5E3 = 5000ms = 5s). You can search for it easily in https://www.youtube.com/s/desktop/96766c85/jsbin/desktop_pol...

This is interesting as I had noticed this happening to me (in Chrome) when the anti-ad-blocking started. I assumed that it was YT's way of "annoying" me still while no ads were shown... It was eventually replaced with the "You cant use Adblockers modal" and now I just tolerate the ads. So I wonder if that 5s delay has always been there.

Another way I noticed is good at skipping ads when adblocker fails is to refresh the page. When it loads again it does not play the ad.

Re: YouTube slows down video load times when using Firefox

#88

Earlier quoted context omitted.

This is interesting as I had noticed this happening to me (in Chrome) when the anti-ad-blocking started. I assumed that it was YT's way of "annoying" me still while no ads were shown... It was eventually replaced with the "You cant use Adblockers modal" and now I just tolerate the ads. So I wonder if that 5s delay has always been there.

I still use adblockers perfectly fine on Youtube. There was never a real interruption in adblocking either. You just need ublock origin + bypass paywalls.

ABP also still works just fine. I prefer the armsrace being taken care of someone else

Re: YouTube slows down video load times when using Firefox

#89

Earlier quoted context omitted.

I'm not even mad about Google making my artificially wait 5s for using firefox. I'm mad that such a big company with suposelly decent engineers, are making me wait 5s with literally a sleep, how is even possible to do such thing in such a rudimentary way? I would be like damn that was smart, this feels like, seriously this is the level?

Because it works. Good engineering isn't about being obtuse and convoluted, it's about making stuff that works.

when the purpose is to abuse your monopoly to further your business interests in another area, being obtuse and convoluted to get plausible deniability is good engineering. This is just sloppy.

Re: YouTube slows down video load times when using Firefox

#90

Oh, and they also falsely show "4K" in the video quality icon, but "accidentally" play a 720p or even worse quality stream. If you manually select the 4K stream quality, then and only then will YouTube deign to show 4K to you.

Something related to this which I find extremely frustrating is that I'm capable of watching a 4k video in my browser just fine. So if I decide to buy or rent a movie on youtube, they can only be played back at 420p. Apparently this is due to DRM restrictions, but the frustrating part is that you can pay extra money for the HD version and there's nothing telling you about this not being supported in your browser unti…

Netflix does the same thing. Actually, speaking of infuriating corporate bullshit, allow me to go on a rant about Netflix and subtitles.

They give you the option to choose between like four, maybe five languages. That's it!

If you want subtitles in any of the other hundred or so languages that they have available, well... no. Just no. Learn one of the four they've picked for you.

If you call their support, they'll gaslight you and mumble something about "copyright", which is patent nonsense. Copyright doesn't restrict Netflix from showing more translations for their own content that they made themselves. They own the copyright on it, which means, literally, that they have the right to do whatever they please with the copy. Including showing the associated subtitles to you.

You see, what actually happened, is that some too-smart UX guy at Netflix couldn't make a language picker look nice for that many options so he asked a too-smart data science (lol) guy to figure out the most common languages for each region.

Here in Australia they picked English, Italian, Vietnamese, Chinese because we have a lot of immigrants from those countries. I'm sure they used very clever algorithms on big data clusters to figure that out. Good job, well done.

Never mind that every other streaming app vendor figured this out. Netflix and their $500K total comp Stanford or wherever graduates couldn't. So they instructed their call centre staff to lie to their customers.

Then they had someone write this idiocy: https://help.netflix.com/en/node/101798

"If subtitles for a title are offered in a language but do not display on your device, try another device."

Oh, oh, I'll go do that right now! Let me try my PC... nope four languages. On the TV? Four languages. Actually, I have a phone... and... oh... four languages.

PS: Thai (only!) subtitles are "special" and use eye-searing HDR maximum white. Like 1,600 nits white that literally leaves green after-images etched into my retina. They have a support page and a pre-prepared set of lies for the support staff to read for that piece of shoddy engineering also.

Post reply on HN