by spankalee · 6y ago · 0 comments
The rationale here seems to be that by blocking video autoplay, Chrome incentivized sites shipping huge animated GIFs, or decoding video in JS and painting to canvas, both of which are very suboptimal for users.
Another comment points to this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=106364...
quote:
Unfortunately, full autoplay blocking is counter productive as images and <canvas> can do "video" playback just fine. We had this issue on mobile and ended up enabling muted autoplay there to avoid that issues.We found many websites having 100MB gifs that could be one order of magnitude smaller when implemented as <video autoplay muted>.
endquote
This seems like a case of "the more you squeeze, the more sand trickles through your fingers?". Sites already have a way of always autoplaying muted video, but it involves either shipping 10x the bytes, or spending huge amounts of CPU and battery on decoding in JS.
Might as well let them autoplay muted video and save the user's network/CPU/battery.
In any case, just leaving the option alone so at least it has some effect like it did before, would still be better than essentially a full surrender.
And what sites are replacing videos with massive gifs? Buzzfeed-like sites have always been filling their pages with 250 megabytes of gifs. News sites with half a dozen autoplaying videos certainly won't be replacing their videos with multi-gigabyte gif versions. And it seems like detecting a large, constantly repainted canvas would be easy enough.
It was all replaced when browsers finally implemented video tags that played in screen, but the tech still exists.
Now I'm looking for a gif and canvas blocker for FF mobile. Any hints on how to tune uBO?
Gifs are trickier. I'll often see non-animated images in gif format. Because of extension API limitations, uBO can't block gifs based on file size or animation frame count. (file size isn't even known until the start of the fetch)
Though Firefox at least does lets you disable all gif animations without just blocking all gifs.
Browsers' native functionality (if not deliberately crippled) and filtering proxies can definitely block animated GIFs while leaving static ones alone, by simply terminating the connection after the first frame.
I could imagine and equal reaction thread here if google deemed some gifs and canvas uses "unworthy" and were blockable.
I mean, heaven for bid, they could the user the ability to actually control the repaint rate. Or pull only the first frame of a gif, and not pull the 100+ meg gif without user consent(via touch, by site, etc..) Browsers wouldn't block popups for years because it could break legitimate use, now I don't think a single browser doesn't ship with that option not on by default.
I think the reality is, that these are features and functions that advertisers want, and google is in the business of selling ads.
This isn't a can't, its a won't.
Individuals must have the ability to shape the internet and their own experiences on it.
That sounds like a challenge.
I think if there were a click to play button on gifs > N megabytes or > X*Y resolution, nobody would complain, nor would they complain about click to play on frequently updated canvases.
Safari actually does that! At least on Big Sur, if you enable the "Reduce Motion" option in Accessibility Preferences, gifs only animate when you hover the pointer over them.
Feels a bit odd at first (e.g. on animated Discord emojis) but then it seems like an option that should have been there since forever.
I'm not on Big Sur yet, so I can't check, but it's a shame if that's the only way to animate it, because I might trust OS-curated animations but not random-website-curated animations. It's a browser preference, not necessarily an OS-wide preference. (But I do think that inheriting it is sensible!)
As with all things customiseable, Firefox has had this option for a long time. (But look for their Chrome-chasing to lead them to get rid of this option soon ….)
Here's a hammer Google has used before to make other websites tow their line: Peanlize their search rankings.
Also, so many parts of websites use gifs and canvas. If you start blocking those, you'll be hiding loading spinners, menus and more. You're adding ton and ton of complexity and going at war after something pretty silly.
If a website is abusive and does shitty things, just don't use the website. After some point, it's no longer the browsers job to babysit the web. I completely agreed with autoplaying audio, but blocking video is just not worth it.
What do you do if the aforementioned is not done by the website as such, but by some omnipresent, and hard to avoid 3rd party ad net?
> After some point, it's no longer the browsers job to babysit the web. I completely agreed with autoplaying audio, but blocking video is just not worth it.
Video is by far the heaviest piece of media out there. There is no practical means to reduce its loading time, especially on mobile. It simply cannot be considered an ordinary piece of page content.
Lastly, people are sick and tired of video ads, and, particularly, obscene, bombastic, and blinking like no tomorrow ones.
Seriously gif is only used because it's autoplay predates widespread abuse of autoplay generally. Now is the time to put an end to it, at least as an option.
(Yes, you can technically "embed" YouTube videos, but they play in the YouTube player with all of its chrome and only in widescreen with letterboxing if your aspect ratio doesn't fit)
Which touches on something that drives me insane. Browsers are reinventing the OS and they are leaving out all the tools useful for managing one's computer. I should be able to identify which tab is using tons of CPU. Which tabs are using lots of RAM. I should be able to stop a particular bit of script (aka process.) WTF do I get a pop up telling me a script may be causing a page to be slow, but nothing identifying which of the five to six tabs in my eight to ten browser windows it is?
Another thing that would be nice is if I had a setting in the browser that allowed me to specify how many ms/sec a script is allowed to run. It would be pleasant to be able to limit scripts to 1 ms per second of run time.
Firefox already has config options to disable image animations and canvas. I've had them on for ages and sites work fine.
Maybe they can re-enable popup windows too since sites replaced them with interstitials long ago.
Chrome's dominance needs to end, this is blatantly anti user. Google could have de-ranked sites with hostile behavior a decade ago and we wouldn't be dealing with any of this stuff. But they won't, because ad money.
They already block what they consider to be 'bad' ads on websites. This is just them giving up because there's no strategic value in making a user-focused browser.
chrome://settings/content/ads
The user intent is clearly to not show large animations on the page without user consent. Seems just as easy to block large animated gifs, or canvas updates, with the same browser setting.
It takes only one of those 4k video ads to kill my data package within seconds, with me not even having an idea of that happening.
With amount of stuff you threw at adblock before, I can not keep assuming goodwill from your side. Your explanation about "giant gifs" is so disingenuous.
Intentionally releasing a virus to sell the cure their cure.
Right, but the point is that disabling autoplay video doesn’t stop that from happening. An ad network would use a canvas tag or a GIF instead. That’a not disingenuous reasoning, it’s exactly what they do!
In your situation you need some kind of browser setting to limit download size, because that’s your problem. Not the method by which that huge amount of data is being presented on screen.
Then deal with the canvas tag or GIF, like Firefox already has the capability to. Don't suddenly decide it isn't worth the effort.
The GIF/Canvas problem is something critics brought up when Chrome first introduced its automatic autoplay blocking. Chrome's autoplay blocking didn't go far enough to block all media types, and it had fundamental design flaws that made it easy to circumvent and easy for websites to detect when a video is blocked. Blocking autoplay was never about saving data -- there were always going to be these kinds of circumvention techniques. Data-saving solutions require different strategies.
But because ultimately Chrome just wanted to do its own thing and get those positive press releases, and because the Chrome devs were trying to fix multiple unrelated problems at the same time, we got a really weird Frankenstein implementation instead of something sensible like auto-muting browser tabs on new domains by default. This is a result that could have been avoided by engaging more with the web community and spending more time up-front thinking about how the feature was going to be used in the wild. Instead it got rushed out because the Chrome dev team digs in its heels and gets combative whenever developers question their decisions.
This result is especially frustrating with autoplay, because digging in heels and rushing the implementation didn't just leave us with a useless feature -- it broke functionality on a ton of websites, including Google's own search page. We got a hacky solution that was rolled out too early and that broke the web because Google insisted they needed an behaviorally-driven, complicated system with a bunch of weird rules and exceptions about when things would and wouldn't be able to play.
And now all of the minor benefits from that system are getting removed and all of the justifications for breaking existing sites are apparently being rolled back -- but we're still left with a hacky solution that breaks websites. We got the worst of all possible worlds because the Chrome team is apparently just unable to engage with developer communities.
As a web dev, I am low-key bitter about how this all played out. This is exactly why it's a bad idea to give the Chrome team so much outsized control over web standards. They broke almost every indie web game online, forced multiple engines to release updates, and this is what we're left with? Because nobody on the Chrome team was capable of predicting that advertisers were going to start shipping GIFs?
The other problem, though, is that that makes adblockers a bigger performance win.
There's especially no going back for Google for whom it's very much a feature since they try to reimplement and replace the OS from within the browser.
The _only_ way to block autoplaying video is to block all animation, which means all of:
- animated GIFs
- nearly all JavaScript
- CSS animation
- partial rendering (showing the top part of a page before the entire page is done downloading)
Everyone else calling for just blocking animated GIFs and canvas is just going to be hit by even more CPU and bandwidth intensive workarounds.
What is funny is that when you search for "Chrome disable autoplay" one of the top results is the extension https://chrome.google.com/webstore/detail/disable-html5-auto... - which adds srvtrck.com (blocked by uBlock origin) for each request. This is not the web browsing experience I want to live with.
As an insider, do you think Google in 2020 would attempt to try to use its near-monopoly on search to force users to use other Google products they don't want and can't opt out of?
(From the outside this is what it seems like to me, so curious what the feeling is like on the inside.) Thanks for your honesty.
1. Ads
2. Make the mobike web worse to shove AMP down our throats