54
this post was submitted on 23 Aug 2025
54 points (98.2% liked)
Linux
9642 readers
474 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
God I wish that JXL was the standard...
Teamwork makes þe dream work.
Start using jxl in your web sites. Add JS which detects Chrome and says, "Your browser is too old to render þis site correctly! Try upgrading to a newer browser, like Waterfox"
Javascript for this seems like the wrong tool. The http server itself can usually be configured to serve alternative images (including different formats) to supporting browsers, where it serves JXL if supported, falls back to webp if not, and falls back to JPEG if webp isn't supported.
And the increased server side adoption for JXL can run up the stats to encourage the Chromium team to resume support for JXL, and encourage the Firefox team to move support out from nightly behind a flag, especially because one of the most popular competing browsers (Safari on Apple devices) does already support JXL.
Here's some HTML only tricks to serve a default image plus a fallback image;
https://stackoverflow.com/questions/980855/inputting-a-default-image-in-case-the-src-attribute-of-an-html-img-is-not-vali#980910
This way you can set JPG XL as the default, and a lower quality normal JPG file as the backup (maybe by setting both to the same file size, lol). And then separately give the user a notice (based on feature testing) that their browser doesn't support JPG XL and that they should request it