Загрузка видео...

Не удалось загрузить видео

На главную

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

Фото профиля Adam Josefus 🧉
Adam Josefus 🧉5 месяцев назад

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

Фото профиля Firefox for Web Developers
Firefox for Web Developers5 месяцев назад

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

Фото профиля Firefox for Web Developers
Firefox for Web Developers5 месяцев назад

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

Фото профиля Roman Hauksson-Neill
Roman Hauksson-Neill5 месяцев назад

Nice

Фото профиля Mighty Hologram
Mighty Hologram5 месяцев назад

I absolutely love when Jake explains things

Фото профиля James Tiberius Shirtless Kirk 🚀
James Tiberius Shirtless Kirk 🚀5 месяцев назад

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.

Фото профиля Firefox for Web Developers
Firefox for Web Developers5 месяцев назад

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

Фото профиля Rain
Rain5 месяцев назад

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

Фото профиля Jens
Jens5 месяцев назад

It's a pleasure listening to you!

Фото профиля Firefox for Web Developers
Firefox for Web Developers5 месяцев назад

Aww thank you!

Фото профиля Fabio Venni
Fabio Venni5 месяцев назад

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

Фото профиля Florian Groh
Florian Groh5 месяцев назад

How can we let caniuse know this has landed?

Похожие видео