
The sizes attribute for <img> was maybe the hardest part. It had complicated syntax that always had to be in sync with whatever your CSS was doing. But sizes="auto" support is almost ready for prime time. Jason Grigsby says we can go a step further an remove srcset too, which is nearly just as complex, and requires having a system to produce multiple images. Jason’s thinking is that we can use newfangled Client Hints to send to the server what size image we need, it responds in kind, and we’re back to a pretty basic <img src="" alt=""> situation. Well, do lazy loading too, but you know what I mean.
Looking for a complete course on getting into web development?
We have a complete intro course to web development by renowned developer Brian Holt from Microsoft. You'll learn how to be a successful coder knowing everything from practical HTML and CSS to modern JavaScript to Git and basic back-end development.
- Personalized Learning
- Industry-Leading Experts
- 24 Learning Paths
- Live Interactive Workshops
20% Off
0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.