Only Apple supports this. Like, literally just Apple. I hate Chrome, and even Chrome doesn’t support this. Firefox? Yeah, zero support.
So for these reasons it’s 100% not viable right now. If you get the support, I’ll consider it for my websites, and tell my colleagues about it, though.
This is the source I used to originally validate my position: https://caniuse.com/jpegxl
Let me know if it’s incorrect, I’d be very interested to learn of new options for the web space as a developer. This said, I googled Firefox and it came back with only “experimental support” for what I think may be an alpha release (version number ends in “a”).