Live data from Hacker News

YouTube slows down video load times when using Firefox

old.reddit.com

321–330 of 486 posts

Re: YouTube slows down video load times when using Firefox

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

Re: YouTube slows down video load times when using Firefox

#322

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

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

[dead]

Re: YouTube slows down video load times when using Firefox

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

I don't need it to be a competitor; I don't even want it to be a competitor. I just need it to exist and get some quality, modest use like the rest of the fedeverse.

Re: YouTube slows down video load times when using Firefox

#324

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?

It is not literally a sleep though, isn't setTimeout more like a creating a delayed event? (I am not a webdev)

You can't directly do a sleep in Javascript because it runs in the same thread as the UI - it would block the user from interacting with the page. This is effectively a sleep because after 5 seconds it's running the code in the passed-in function (not firing an event). The code in the function then resolves a promise, which runs other functions that can be specified later by what called the one using setTimeout.

Re: YouTube slows down video load times when using Firefox

#325
post #315

Earlier quoted context omitted.

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?

_I_ would in their shoes because I'm not just in it for the money and I care about the craft. But clearly I am not them. :-) Mathematically it doesn't make sense for Google. It might make sense from an anti-trust perspective...

It's hard to argue anti-trust when all these browsers are based on Chromium - which is maintained in part by Google, Microsoft, Opera, Vivaldi, Intel, ARM, and Canonical plus several volunteers.

Re: YouTube slows down video load times when using Firefox

#326

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?

It is not literally a sleep though, isn't setTimeout more like a creating a delayed event? (I am not a webdev)

That's Javascript for you. Don't want to block the one thread from doing other things in the meanwhile.

Re: YouTube slows down video load times when using Firefox

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

> I'd love to see real competition to YouTube. I'm afraid this seems not, the UX isn't great.

What do you call YouTube's UI then? Any Peertube instance I used has better UI than YouTube. Most websites have. Because YouTube UI is atrocious and one of the most user hostile UIs I have used.

> search results limited to 2 items

Not sure what you are talking about. Is this an exaggeration? It is not clear via text-only to me.

Re: YouTube slows down video load times when using Firefox

#328
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 think Rumble [1] is the most valid competitor at the moment.

[1] https://rumble.com/

Re: YouTube slows down video load times when using Firefox

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

As I said, the decisions are locally reasonable. However, if not supporting Firefox potentially exposed my company to scrutiny over anti-competitive behavior, then, yes, I would absolutely invest in testing procedures to mitigate that.

It's also worth emphasizing that it isn't difficult to support Firefox. I'm pretty sure that many of the sites that I visit do so largely by accident. I do a fair bit of web development, and Firefox/Chrome compatibility has never been an issue in the slightest for me. You almost have to go out of your way to choose Chrome-specific APIs in order to break compatibility. How does virtually every other website on the internet manage it—from my bank to scrappy startups with junior developers coming straight out of bootcamps—while Google with all of their engineering talent and $100+ billion cash on hand just can't seem to make it work?

Post reply on HN