Live data from Hacker News

YouTube slows down video load times when using Firefox

old.reddit.com

261–270 of 486 posts

Re: YouTube slows down video load times when using Firefox

#261

Can we have some fucking facts already? We have seen other reports of this same issue but people were using Chrome. This seems like an over-reaction. And the Reddit herd is known for being unstoppable over false-assumptions.

HN is no better. We love to jump to premature conclusions. Just look at this thread. It doesn't even link to anything (right now the submission link is https://old.reddit.com/r/youtube/login/) and yet people are automatically bringing out the pitchforks.

Re: YouTube slows down video load times when using Firefox

#262
post #203

Earlier quoted context omitted.

Because 5E3 is shorter than 5000, just like you can often see !0 to get "true" in minimize code because it saves two characters.

In js I thought 1==true, and 1 is shorter than !0 ?? Never seen the use of exponential notation for numbers in js though (not a surprise, I'm not really a programmer), it seems sensible to me from the point of shifting the domain from ms to seconds.

Double-equals behaves differently than triple-equals. Minifiers probably can't swap them safely.

Re: YouTube slows down video load times when using Firefox

#263

Earlier quoted context omitted.

That is not correct. The surrounding code gives some more context: h=document.createElement("video");l=new Blob([new Uint8Array([/* snip */])],{type:"video/webm"}); h.src=lc(Mia(l));h.ontimeupdate=function(){c();a.resolve(0)}; e.appendChild(h);h.classList.add("html5-main-video");setTimeout(function(){e.classList.add("ad-interrupting")},200); setTimeout(function(){c();a.resolve(1)},5E3); return m.return(a.promise)})}…

Why is it only trying to detect ads when the user agent is Firefox? https://old.reddit.com/r/firefox/comments/17zdpkl/this_behav...

Probably because there are other methods for Chrome that don't apply to Firefox.

Like when I noticed that some sites did some URL rewriting trickery on Firefox and others browsers, but not for Chrome. The trick is to show you the proper URL the link points to, but as you click, it is substituted for one that is a redirection, for tracking purposes (ex: "https://l.facebook.com/l.php?u=http:://actualsite..."). On Chrome, they don't need to use these tricks as the browser supports the "ping" attribute of links, so they can do their tracking without rewriting the URL.

Re: YouTube slows down video load times when using Firefox

#264

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

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?

Google employs 30000 engineers, it's impossible for them all to be decent.

Re: YouTube slows down video load times when using Firefox

#265
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…

YouTube's market hold is unfortunately circular; no uploader on the platform will risk splitting their audience to a platform nobody goes to, and because of that, new platforms are unable to grow. That aside: I also doubt most peertube instances can withstand the bandwidth costs of seriously hosting a few moderately succesful YouTube channels.

Content makers already do multi uploads on various platforms

Re: YouTube slows down video load times when using Firefox

#266
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…

These sounds like classic MS behaviour. It is kind of thing that ought to addressed in anti-trust case.

Re: YouTube slows down video load times when using Firefox

#267
post #209

Earlier quoted context omitted.

When I ran into the adblocker-blocker (Firefox + uBlock Origin), I noticed that I could watch videos if logged out. So I just stayed logged out, and haven't seen an anti-adblock message since. Or an ad. Added bonus, I'm less tempted to venture into the comments section...

Same, I use Firefox + uBlock Origin + YouTube Unhook for a cleaner interface. I also always watch videos on private navigation windows (my default way of browsing the internet) and I manage subscriptions with the RSS feed of the channels, much better to track what I have watched since the default homepage of YouTube does not display the last videos of your subscriptions. Edit: I have forgotten to add sponsorblock to…

I've been randomly getting the situation where the video on Firefox doesn't work, but the sound does. It says something like "Sorry something's gone wrong", but for a brief second I can see the video. I think it's connected to the ad-blocker changes, but it doesn't actually have a message about having an ad-blocker on.

Re: YouTube slows down video load times when using Firefox

#268

Earlier quoted context omitted.

I would imagine that in a well coordinated company engaging in this kind of thing, the order wouldn't be "slow down firefox", but something along the lines of "use XYZ feature that firefox doesn't support and then use this polyfill for FF, which happens to be slow". Something that doesn't look too incriminating during any potential discovery process, while still getting you what you want.

Nah, that's got a risk profile. They could implement whatever your strategy is in the next release. You aren't going to necessarily get the longevity of the naive approach. Plus a Firefox dev would discover that more easily as opposed to this version which they can just dismiss as some JavaScript bug on YouTube's part

that's the beautiful thing, you make the polyfill contingent on the browser being firefox rather than probing for the feature and then you forget to remove it once they implement the feature

Re: YouTube slows down video load times when using Firefox

#269
post #188

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?

Speaking as someone who only very occasionally does browser related programming, what is the supposed sin committed here by implementing it this way?

In programming in general, sleeps are generally considered....(I'm lacking the word)...distasteful?

If your code needs to wait for something, it's better done with some sort of event system or interrupt or similar; the reason being that a 5s wait is a 5s wait, but if, say the thing you're waiting for returned in 10ms, if you're using an alternative solution you can carry on immediately, not wait the remaining 4.99 seconds. Conversely, if it takes longer than 5s, who knows what happens?

Re: YouTube slows down video load times when using Firefox

#270
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…

Using Google sites with a VPN on Firefox has been really annoying for the past couple of months as well.
Post reply on HN