r/programming • • Jan 07 '20

Adobe will finally kill Flash in 2020.

https://www.ghacks.net/2017/07/25/adobe-retires-flash-in-december-2020/
819 Upvotes

197 comments sorted by

View all comments

Show parent comments

24

u/SanityInAnarchy Jan 07 '20

Almost everything you said is the exact opposite of my experience.

Flash was easier to block, because usually you wouldn't lose anything by blocking it, and if you did, there was usually an obvious rectangle to show you what broke. With HTML5, it's still easy to just turn off JavaScript, and it breaks less than you'd think, but it still breaks stuff. And there were other advantages -- Flash games were the indie scene before it moved to Steam, and I don't think it has ever been as easy to get into game development and get your game in front of a ton of people as it was with Flash portals.

But if HTML5 uses more resources, that's probably a function of sites that are actually maintained also getting more bloated over time. Back when Flash was huge and disabling it saved a ton of resources, even something as simple as video playback was a thousand times faster using anything but Flash -- not just HTML5, but plain old <object> tags embedding Windows Media Player or whatever.

Flash also wasn't terribly accessible, was good at zooming everything proportionately and terrible at reflowing to the display size you actually had, and just chugged doing pretty much anything at higher resolutions. It technically had cross-platform support, but that was pretty poor, too -- towards the end, out of all the weird browsers people like to use on Linux, only Chrome supported Flash.

And since it was proprietary, only Adobe could fix any of that, and they were incredibly slow. Flash alone probably held browsers back from going 64-bit for years...

For once, I'm glad Steve Jobs was an asshole and shut them out of iOS long enough to cripple them on mobile. That was probably the beginning of the end -- not the sluggish performance, not the instability, certainly not the security nightmare, we'd probably still be stuck with it if it got a foothold on our phones.

8

u/patssle Jan 07 '20

For once, I'm glad Steve Jobs was an asshole and shut them out of iOS long enough to cripple them on mobile.

Except there was no replacement ready - HTML5 wasn't universally natively supported. 3rd party solutions like JWPlayer were needed to serve both Flash and HTML5.

2

u/SanityInAnarchy Jan 08 '20

That's just it -- thanks to Apple, HTML5 was on even footing with Flash, which also was no longer universally supported. So you had to do both, you couldn't just be like "HTML5 would be nice, but we have to support Flash anyway, and then why bother also doing HTML5?"

Which was annoying as a dev, but great as a user -- every now and then, a site got their detection backwards, and did Flash-with-a-fallback-to-HTML5 instead of the other way around. But there was a long, glorious period where simply turning Flash off in about:plugins made everything faster, and forced a bunch of sites to fall back (forward?) to HTML5.


Also, why did people even bother with JWPlayer? That's really only relevant for video, at which point... why not just give people the video:

<video controls width="720" height="480">
  <source src="/your/video.mp4" type="video/mp4">
  <source src="/your/video.ogv" type="video/ogg">
  <object width="720" height="480" data="/your/video/player.swf" ...>
    <!-- Heck, why not add Windows Media Player if they're old enough? -->
    <embed src="/your/video.avi" ...>
  </object>
</video>

No JavaScript needed, all browers at the time supported (even Firefox and their refusal to use MP4), and the browser's default HTML5 controls are IMO way better than the JWPlayer ones. I guess JWPlayer made a decent Flash player that I could drop into the above?