Live data from Hacker News

YouTube slows down video load times when using Firefox

old.reddit.com

341–350 of 486 posts

Re: YouTube slows down video load times when using Firefox

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

It's clear Google is only testing for chrome engine and safari: which comprise 97% of the browsers being used. Would you increase your testing by 50% to thoroughly test for 3% of the market?

[deleted]

Re: YouTube slows down video load times when using Firefox

#343

Earlier quoted context omitted.

Using an idle timer, like window: requestIdleCallback [1], is good engineering. If anything passes that's not good engineering, it's laziness. I'm not even a JS programmer but I know about timers, idle wait in UI programming is a common pattern. It's the attitude of mediocre engineers not bothering to lookup or learn new things. If every OS/browser/stock market dev did what they want "because it works" we don't have…

Nah, then it doesn't work. "It works" is The high engineering bar and it's the hard one to hit. Oftentimes it's replaced these days with imagined complexity, ideological conformity or some arbitrarily defined set of virtues and then you get a really complicated thing that maybe works some of the time and breaks in really hard to understand ways. Transcompiled frameworks inside of microservices talking to DBMS adapter…

I agree with the spirit of your comment; I too hate over-engineering. Choose your battles is an important step in mastery, yes, but being lazy can't be chalked up to mastery.

In this particular case I disagree with using `sleep`; using the idle timer it's not as roundabout as you put it: _Transcompiled frameworks inside of microservices talking to DBMS adapters over virtual networks_. It's a straight-forward callback, some lower-level timekeeper signals you and you do your thing: it's nowhere close to the convoluted jumping through hoops you explain.

Mastery comes with balance: putting in the optimal effort, not more, not less either. Of course, depends on what one's trying to master: job or programming. Former means do the minimum and get maximum benefits from your job/boss, latter means enjoy learning/programming and arrive at the most optimal solution (for no reason, just because you're passionate).

Re: YouTube slows down video load times when using Firefox

#344
post #123

I hope they keep this code in YT. It will be a party for the EU to punish Google with an anti-monopoly lawsuit. Best case: google gets forced to split up chrome, youtube and search as they obviously abuse their power.

Would be a bad day for the Internet. There's no way Youtube is financially viable without being cross-subsidised by Google's search income and running on Google's peering agreements with ISPs. Ads would be nowhere near enough to cover the bandwidth cost, which is why sooner or later any attempt to copycat it failed or went down to utter niche content.

Re: YouTube slows down video load times when using Firefox

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

I use Firefox across Windows, Mac, OpenBSD, and Ubuntu. I've not seen any specific issues with Google sites at all. I only really use Docs, Maps, and Youtube with any regularity but I've not really seen any of these issues.

Re: YouTube slows down video load times when using Firefox

#346
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?

I don't know if this is what was meant, but my assumption is that it is quite brazen and crude.

But then I think of some alternative method where they send an ajax request to "sleep.google.com/?t=5" and get a response like "" after five seconds.

Re: YouTube slows down video load times when using Firefox

#347

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)})}…

I couldn't reproduce the 5s wait in multiple scenarios in Firefox (various combinations of being logged in / not being logged in / without adblocker / with adblocker) and couldn't reproduce a 5s wait time in any of them, it played back immediately in each case (when without adblocker, using a second video to have one start without ad). I tested on Linux. What exact combination of circumstances is required to trigger…

[deleted]

Re: YouTube slows down video load times when using Firefox

#349
I guess this explains why some people say they use Chrome because "Firefox is slow", I've been using Firefox my entire life, and after Quantum it has been on par with Chrome in terms of speed if not faster from what I can tell. I do wish Firefox didn't stop with their Oxidation efforts, I would have loved to see it as a way to grow Rust, since as FF was developed in Rust, the language grew and evolved as a result. One key area I wish Firefox would grow in is the development tools. I ONLY use Chrome for the dev tools.

I wish Mozilla would invest way more into Firefox itself. I think Mozilla could and absolutely should consider suing Google if they're artificially slowing down Firefox.

Post reply on HN