view source
Be careful with 100vw for the sizes attribute
While I agree that this a lot of code for only one image, it’s something like that what we have to deal with if we want to make the most of responsive images. In most cases you won’t need the <picture> element. A simple <img> with srcset and sizes attributes will suffice.
Advertisement