Загрузка видео...
Не удалось загрузить видео
sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable. Here's when you can use it, and how…
22,096 просмотров • 5 месяцев назад •via X (Twitter)
Комментарии: 12

You're so good at simplifying web "chaos" into just a few words. Thank you so much, Jake!

Thank you! I'm glad these are landing well. They're fun to make!

There are loads more attributes you can use to control how images are loaded and rendered. Here are the full docs

Nice

I absolutely love when Jake explains things

Bonus being that if you use `<source>` tags with your `<img>` all wrapped in a `<picture>`, as I do, you can still add `sizes="auto"` to the lazy loaded `<img>` tag as that value will be ignored by the older browsers you still have to support.

Yesss! You can also do sizes="auto, …all the usual shit" and older browsers will ignore the 'auto'.

@jaffathecake If we could banish every web developer to 250ms pings, the web would be a wonderful place.

It's a pleasure listening to you!

Aww thank you!

@yoavweiss Finally!!!!! 💪👏👏👏

How can we let caniuse know this has landed?

