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?
YouTube slows down video load times when using Firefox
341–350 of 486 posts
Re: YouTube slows down video load times when using Firefox
#342Re: YouTube slows down video load times when using Firefox
#343Earlier 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…
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
#344I 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.
Re: YouTube slows down video load times when using Firefox
#345I 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…
Re: YouTube slows down video load times when using Firefox
#346Earlier 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?
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
#347Earlier 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…
Re: YouTube slows down video load times when using Firefox
#348Virtually everybody is using an engine based on Webkit or Blink these days. This is naturally what websites are optimized for.
Re: YouTube slows down video load times when using Firefox
#349I 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.