Live data from Hacker News

YouTube slows down video load times when using Firefox

old.reddit.com

401–410 of 486 posts

Re: YouTube slows down video load times when using Firefox

#401

Earlier quoted context omitted.

They have done such research before, Google published this at a time when developers were all "100 ms more or less web load time doesn't matter". Since then webpages has gotten much more focused on performance. https://blog.research.google/2009/06/speed-matters.html

The dog slow load times of ad infested AMP pages would suggest otherwise.

AMP pages load way, way faster IME

Re: YouTube slows down video load times when using Firefox

#402
post #377

Earlier quoted context omitted.

The 5-second wait is the issue, not the means it was obtained -- a fixed wait time either wastes the user's time (by making it take longer than necessary) or is prone to bugs (if the awaited task takes >5 seconds, then the end of the timer will likely break). The better question is _why_ a 5-second wait was necessary, and there's almost certainly a better way to handle that need without the fixed wait time.

OPs point, I think, is that wasting the user's time is part of the point of the code. This specific code seems partially meant as a punishment of the user for using an adblocker.

*for using firefox instead of google's own browser.

Re: YouTube slows down video load times when using Firefox

#403
post #386
post #202

Earlier quoted context omitted.

>I really don't understand why any technically proficient user would willingly use any of the official YouTube frontends. I'm a technically proficient user that's written custom bash scripts for youtube-dl combined with ffmpeg to download videos locally and I still use the official Youtube desktop web browser UI every day for several reasons: + transcripts and close-captioning (use Ctrl+F search for text to find the…

Most of those features are available in OSS tools as well. And for those that are not, there are alternative solutions that might take a bit of work to implement. I'm not claiming that the OSS tools have feature parity with 1st party frontends, or that they won't require some sacrifices, or effort adjusting. I just think that the trade-off of losing some of the convenience in return for not being tracked and manipula…

>Scrubbing in mpv is instantaneous for me for local files

Yes, I agree that scrubbing in mpv or vlc is "instantaneous" but Youtube's web ui is even more hyperfast "instaneous" than mpv.

>There is also a solution for generating thumbnails[1], though I had some issues with it, and didn't end up using it.

For me, using an offline tool like thumbfast to generate timeline previews defeats the purpose of using Youtube's pre-existing timeline thumbnails that Google's datacenter already generated. Let me explain...

>I do actually think that OSS tools provide a better UX. I can download the media and consume it offline, using any player of choice, on any device, at any time. I find YouTube's recommendations a nuisance,

I'm guessing it's a difference in usage pattern. I'm often browsing a bunch of Youtube videos as a research tool. Like a "visual wikipedia" for various topics (especially DIY tutorials and products research). I want to jump in and out of videos fast. Downloading videos with yt-dlp to play in mpv isn't the workflow here. That's too slow and cumbersome. Instead, I'm sampling a bunch of videos and maybe a few of those will be ultimately be downloaded. E.g. Preview/scrub fragments of 10 related videos, read some viewer comments, scan some transcripts, etc... and eventually only yt-dlp 2 of them. This is why "mpv yt-dlp with workarounds" is not an acceptable substitute for using Youtube's web ui.

Re: YouTube slows down video load times when using Firefox

#404
post #388
post #2

The most interesting part from the discussion was noting it's implemented in the most basic, easily avoidable way (just spoof chrome) implying engineers unhappy with these tasks. @dang or op, wrong link. Should be: https://old.reddit.com/r/youtube/comments/17z8hsz/youtube_ha...

I sometimes wonder if the use of Firefox is under reported just because a lot of it's users are power users, installing extensions that spoof the user agent. I know I did for a long while, making my Firefox pretend it was Chrome on a Windows machine.

I'm a too proud Firefox user to do that. But not all of us are fanatics like that.

Re: YouTube slows down video load times when using Firefox

#405
post #402
post #377

Earlier quoted context omitted.

OPs point, I think, is that wasting the user's time is part of the point of the code. This specific code seems partially meant as a punishment of the user for using an adblocker.

*for using firefox instead of google's own browser.

That's somewhat in debate, the last I saw. The initial report was it affected a user using Firefox, and it didn't when they switched useragents. Since then, there have been reports of users not seeing it in Firefox, but seeing it in other (even chromium-based) browsers. So it seems likely they are A/B testing it, but less clear if they are intentionally targeting non-Chrome browsers.

Their goal, quite clearly, is to prevent (or at least heavily discourage) adblockers. This is one attempt to detect them, and maybe in Chrome they have a different detection mechanism so it doesn't show the same behavior.

It would be a particularly foolish move on their part to push Chrome by punishing everything else right now, while they are in the middle of multiple anti-trust lawsuits. It makes me think that is unlikely to be the intent of this change.

Re: YouTube slows down video load times when using Firefox

#406
post #373
post #371

Earlier quoted context omitted.

Okay, I'm sold on the delay, but where's the code that detects non-chrome? Do they serve different js based on the user agent header? If they delay chrome too there's no foul.

Just going off this tweet, it seems to be user-agent based: https://fixupx.com/endermanch/status/1726605997698068630

If YouTube are going to go down this path, then perhaps Firefox devs should set the user agent to Chrome for YouTube?

Re: YouTube slows down video load times when using Firefox

#407
post #219

I use Firefox, and Google's sites are literally the only ones where I consistently have issues. There was a period of about a month this summer where Google Maps was just completely broken for me, the map wouldn't update at all when attempting to search or pan. There was recently a several day span where chat in Gmail had a 10+ second input lag due to some font-related JavaScript code spinning the CPU nonstop. It's l…

A few weeks ago I posted on here about the maps lag, and it literally felt like it was fixed after the comment got some attention. There's 100% targeted de-optimization for firefox users and the burden of finding it is on the users it seems.

Not to diminish the other sketchy stuff Google's doing, but I think the maps lag issue might actually be Firefox's fault. Whenever it happens to me WebGL stops working across all websites and restarting the entire browser fixes it. It's almost like when Firefox has been open a long time it just forgets how to use graphics acceleration.

Re: YouTube slows down video load times when using Firefox

#408
post #170

Another "Youtube is doing shit" thread and yet not a single mention of Peertube. https://joinpeertube.org/en So for all people uploading videos, please have a look at Peertube. It is to Youtube what Mastodon is to Twitter. (and more: it is compatible with Mastodon, one can subscribe to your Peertube channel through his/her mastodon account). I’m not arguing to leave Youtube completely but to offer an alternative to y…

I'd love to see real competition to YouTube. I'm afraid this seems not, the UX isn't great, homepage is useless, you need to click on Browse content then enter some keywords on a blank page, search results limited to 2 items and then you need to click on "Display more videos". I might be to used to youtube homepage, for me it's perfect I get videos right away and suggestions are good. I'm pretty sure this project, Ma…

[dead]

Re: YouTube slows down video load times when using Firefox

#409
post #372
post #328

Earlier quoted context omitted.

I think Rumble [1] is the most valid competitor at the moment. [1] https://rumble.com/

That's some off-putting content to show new users. I suspect they're an ideologically driven platform? *edit, their press release section removes all doubt.

[dead]

Re: YouTube slows down video load times when using Firefox

#410

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 happening to me in Chrome as well so I don't think it's tied to the browser you use.

Curiously it happens only on one profile, in another Chrome profile (which is also logged in to the same Google account) it does not happen. Both profiles run the code in your comment, but the one that does not have the delay does not wait for it to complete.

The only difference I spotted was that the profile that loads slowly does not include the #player-placeholder element in the initial HTML response. Maybe whether it sends it or not is tied to previous ad-blocker usage?

What does piss me off is that even if you clear cookies and local storage and turn off all extensions in both profiles it still somehow "knows" which profile is which, and I don't know how it's doing it.

Post reply on HN