Пропустить навигацию
sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable.
0:00 / 1:59

sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable.

Firefox for Web Developers

@FirefoxWebDevs90 тыс. подписчиков

Открыть в X
244 отметки «Нравится»СкачатьОригинальный пост

22 114 просмотров

sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable. Here's when you can use it, and how…

12 комментариев

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля Adam Josefus 🧉

    @adamjosefus

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

    5 отметок «Нравится»

  • Фото профиля Firefox for Web Developers

    @FirefoxWebDevs

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

  • Фото профиля Firefox for Web Developers

    @FirefoxWebDevs

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

    4 отметки «Нравится»

  • Фото профиля Roman Hauksson-Neill

    @RomanHauksson

    Nice

    2 отметки «Нравится»

  • Фото профиля Mighty Hologram

    @mightyhologram

    I absolutely love when Jake explains things

    2 отметки «Нравится»

  • Фото профиля James Tiberius Shirtless Kirk 🚀

    @ShirtlessKirk

    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.

    2 отметки «Нравится»

  • Фото профиля Firefox for Web Developers

    @FirefoxWebDevs

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

    3 отметки «Нравится»

  • Фото профиля Rain

    @RainBromo

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

    1 отметка «Нравится»

  • Фото профиля Jens

    @jens023

    It's a pleasure listening to you!

    1 отметка «Нравится»

  • Фото профиля Firefox for Web Developers

    @FirefoxWebDevs

    Aww thank you!

    1 отметка «Нравится»

  • Фото профиля Fabio Venni

    @fabiovenni

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

    1 отметка «Нравится»

  • Фото профиля Florian Groh

    @growradio

    How can we let caniuse know this has landed?