Live data from Hacker News

Optimizing images with the HTML tag

jfhr.me

51–52 of 52 posts

Re: Optimizing images with the HTML <picture> tag

#51
post #14

Earlier quoted context omitted.

I've been surprised lately by the number of people that don't know about or understand HTTP headers. One discussion I saw was on a project that was trying to decide what language to serve a webpage in. They spent a good amount of time choosing a geo-location provider and library and then deciding what language to default to for locations that often had multiple languages. I asked why they didn't just use the Accept-L…

Google famously uses geolocation to set language instead of Accept-Language. They have their reasons, which I disagree with. https://news.ycombinator.com/item?id=30638590

Agreed, this experience is terrible.

Re: Optimizing images with the HTML <picture> tag

#52
post #14

Earlier quoted context omitted.

I've been surprised lately by the number of people that don't know about or understand HTTP headers. One discussion I saw was on a project that was trying to decide what language to serve a webpage in. They spent a good amount of time choosing a geo-location provider and library and then deciding what language to default to for locations that often had multiple languages. I asked why they didn't just use the Accept-L…

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.

You’d need to serve the proper resolution too
Post reply on HN