← Back to context

Comment by jeroenhd

1 year ago

Took a performance benchmark in both Firefox and Brave. Both of them are unusually slow (addons/extensions disabled, fresh profile), but Firefox especially so. Source for the huge render times seems to be desktop_polymer.js, specifically the part that's registering and setting up custom web components. Once the website loads, performance becomes a lot better.

My guess is that a Polymer update made Youtube slower for everyone, but SpiderMonkey isn't particularly great at the kind of excess operations that have been added. Firefox in particular seems to suffer from complete UI freezes whereas Chromium browsers seem to just have slow tabs when the browser is overwhelmed.

While I certainly wouldn't be surprised if this is part of an anti-adblocker mechanism, not every slowdown on Google's websites is done out of malice. Some of it is just caused by bugs.

Since YouTube has massive resources and famed tooling&processes, presumably either they knew about the Firefox problems before deploying, or (if there was a genuine QA mistake) they'd know about it very soon after deploy, when they'd be able to rollback if they wanted to.

(Obviously, they know about Firefox, they've developed for it since it was available, and they've even been funding it.)

  • Google funding Firefox is part of the problem. It contributes to the perception of corruption around the Mozilla organization, just as it does when the bus has a supergraphic ad for a car dealership on it.

    If the EU was serious about privacy they'd fully fund Firefox.

    • The perception of corruption is not without merit. Mozilla is pretty corrupt at this point. (Source: I work here).

      I really don’t get where this whole “the EU should fund it” idea came from and why it’s repeated so often. Why would the EU throw their tax payer money at another corrupt American corporation? Mozilla has been in bed with Google for several years, has horrible web compatibility, and is only barely still in the privacy lane.

      Besides, Europe isn’t the land of open source software and privacy. Look at the laws in the UK, France, and Germany; they’re not exactly privacy friendly. Look at the tech stacks at companies in the UK and Germany, they lean very heavily into the Microsoft/.NET world.

      10 replies →

  • I always find these comments a bit rediculous. You think that big corporations are incapable of having accidental bugs?

    Wish that were true. The world would be a much less buggy place.

    • > I always find these comments a bit rediculous. You think that big corporations are incapable of having accidental bugs?

      I didn't say they that they couldn't have accidental bugs.

      I did note that they'd normally be able to rollback a deploy with problems.

      Why do you say that's ridiculous to comment?

      2 replies →

    • In the world of fail early, fail often this stuff is bound to happen. That said YouTube works fine for me minus the obvious resolution issues that YouTube has been enforcing forever because of DMCAon some videos

  • You’d be shocked how shitty the development practices inside a bigco can be. Working at a FAANG-level company is profoundly disillusioning.

    • One of recent Chromium updates (affected Chrome's and Edge's wide release, not just betas) completely broke all pages with select elements containing a large amount of option elements. We're talking 100+ times slower parsing of the page. An internal tool of ours went from rendering pretty much instantly to 30s long hangs and/or crashes.

      Found the bug: https://issues.chromium.org/issues/341095522

      1 reply →

  • It feels more like YouTube just doesn't prioritize an unpopular browser. Google only put resources into Firefox so they can say they're not a monopoly, but that strategy didn't really pan out. So, now, they're probably going to stop caring about Firefox altogether.

I have a strong feeling the developers behind sites like YouTube and Reddit don't actually use the software they make, because both are slow and laggy to use on any computer I use.

I just can't think of any other reason why they're both so infamously bad.

  • As they say, you aren't the customer, the advertiser is the customer.

    If the site works for the 95% of ad dollars who use Chrome on their phones, it works as intended.

    • > the advertiser is the customer.

      Excellent point. If any change on the site caused ad views or clicks to drop by >1%, automated tests probably shoot flares up to the exec level. Whereas the vast majority of users on FF are blocking ads anyway, so their lagging performance probably barely registers on those tests.

      While YT probably still has non-ad automated performance tests, in the case of a non-Chrome, non-Apple desktop browser, those tests probably run every odd Thursday and regressions send a toast message to an intern. :-)

    • Even advertisers don't matter anymore, only metrics. Because they can be manipulated.

      The software engineering show isn't being run by engineers, middle-managers or even MBAs anymore.

      It's run by product people who treat it like a mini dictatorship.

      So releases like this have to go out, no matter the consequence.

  • Working on software rarely, especially at large companies, means you have any sort of agency over the features of the software. That's Not Your Job (TM).

  • What actions do you find slow and laggy? There are definitely UX improvements, but I don't find either laggy on the multiple platforms I use them on, as long as I have a good network connection.

Another wild-ass guess is that a lot of garbage may be generated? I had to use an intranet site that was developed on an older version of vue, and that version apparently was a profligate allocator; difference between chromium and firefox was stark.

On an only-slightly-related note, if anyone knows how to use the new firefox profiler when there is no internet access, please point me at it.

>desktop_polymer.js

its doing such fun things as patching tons of standard js methods (.append() .appendChild() etc) for no reason other than maybe fighting adblockers?

When debugging own scripts/extensions running on YT every other call to standard function ends up calling some proxy in desktop_polymer.js

even after load, youtube shorts (the doomscrolling section of youtube) has a 2-3 second lag between when the audio starts on a new video and when the video starts moving.

seems monopolistic. what's goin on with peertube and rumble these days

my question is why isn't this being tested for before it is rolled out? shouldn't google be running testing on their sites for each of the major browsers before dropping it on everyone?

Also, it is Firefox on the desktop. 90% of YouTube views come from mobile, and Firefox only has about 5% market share on the desktop. So desktop Firefox is a half a percent of the overall users of youtube.

Is it any surprise that maintaining support for a browser that delivers less than a percent of the total users is deprioritized or just forgotten about?

  • Despite those stats, if Google wants to avoid being called a monopoly they need to support it, and it needs to receive the same level of support as their own product.

    • I'd argue the opposite. You need to be a monopoly and have basically every eyeball in the country on your website for it to be worth spending the engineering hours optimizing a browser that only delivers a fraction of a percent of your viewers.

    • It’s not monopolistic to not support shitty browsers with little user base. This isn’t even the basis for the current antitrust ruling against Google, for what it’s worth.

      As the parent comment points out, if YouTube isn’t buggy for most of their users, why do they have to worry about it? We don’t expect either Microsoft or game devs to ensure their stuff works well with wine on Linux.

      2 replies →

  • If they're doing it to intentionally damage firefox because they feel it is competition, that's an argument for Chrome to be severed from google.

    If they're inadvertently doing it because firefox is so insignificant as not to be worth thinking about, that's an argument for Chrome to be severed from google.