Hacker News new | ask | show | jobs
by Theodores 1329 days ago
Exactly. Just have jpg in the code and serve webp based on header. Problem solved.

If you can do avif with better results than webp then do that.

You can also vary on the data save if you are really keen.

1 comments

You’d need to serve the proper resolution too