Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

22,096 Aufrufe • vor 5 Monaten •via X (Twitter)

12 Kommentare

Profilbild von Adam Josefus 🧉
Adam Josefus 🧉vor 5 Monaten

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

Profilbild von Firefox for Web Developers
Firefox for Web Developersvor 5 Monaten

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

Profilbild von Firefox for Web Developers
Firefox for Web Developersvor 5 Monaten

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

Profilbild von Roman Hauksson-Neill
Roman Hauksson-Neillvor 5 Monaten

Nice

Profilbild von Mighty Hologram
Mighty Hologramvor 5 Monaten

I absolutely love when Jake explains things

Profilbild von James Tiberius Shirtless Kirk 🚀
James Tiberius Shirtless Kirk 🚀vor 5 Monaten

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.

Profilbild von Firefox for Web Developers
Firefox for Web Developersvor 5 Monaten

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

Profilbild von Rain
Rainvor 5 Monaten

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

Profilbild von Jens
Jensvor 5 Monaten

It's a pleasure listening to you!

Profilbild von Firefox for Web Developers
Firefox for Web Developersvor 5 Monaten

Aww thank you!

Profilbild von Fabio Venni
Fabio Vennivor 5 Monaten

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

Profilbild von Florian Groh
Florian Grohvor 5 Monaten

How can we let caniuse know this has landed?

Ähnliche Videos