Hacker News new | ask | show | jobs
by flockonus 52 days ago
Interesting win for a cool format, i remember there was a rather arbitrary closing of the issue in Chromium forum despite big support for its addition, more strange yet is that Chrome team was pushing it's technical advancement forward.

Sadly, still far from adoptable today's web: https://caniuse.com/jpegxl = 17% https://caniuse.com/?search=webp = 97%

2 comments

It’s quite adoptable since you don’t have to adopt only it. You can use a <picture> tag with a jxl <source> for high quality at low cost for clients that support it, and a webp <source> as fallback. Or on the server side, look at the `Accept:` header.
Linking that is really missing the point, that the number is going to have a massive jump in a few weeks.
Not really.. caniuse is quite literal to its name, as a web dev that's what orients what tech i pick up to deploy today.

Anything below ~90ish% is no go, unless i have a fallback strategy of some sort.

> Not really.

Are you saying that the percent it'll be in six months isn't relevant to you, or something? You'll probably be working on most of the same projects, even. If you do care about the future then yes caniuse is missing that point.

> Anything below ~90ish% is no go, unless i have a fallback strategy of some sort.

Once a few more versions of chrome roll through it'll jump up to almost 80%, and you can have a fallback easily.

> Are you saying that the percent it'll be in six months isn't relevant to you, or something?

It absolutely is relevant.. but only in about 6 months :)

Suppose the obvious case, i have some resizing pipeline for images. Would i include support today in my resizing pipeline today and pay a few extra cycles and storage for someone that my clients can't read?

It would be cool to have a subscribed alert for when the tech crosses a certain % threshold adoption so i can look at it again, otherwise it just relies on my brain's flawed long term cron job

> Suppose the obvious case, i have some resizing pipeline for images. Would i include support today in my resizing pipeline today and pay a few extra cycles and storage for someone that my clients can't read?

Yes, this is literally what the <picture> element is for.

Your hypothetical pipeline would be able to convert <img> elements into <picture> elements with multiple <source> elements for different user resolutions and format supports.

<picture> is indeed the right thing from the FE solution standpoint.

Still, unjustified in the pipeline and feature as a whole. Makes no sense to add another format to the pipeline, even if that format saves ~30% on size. Now i need to store 170% of the image size from before & have extra complexity to deal with.