The sizes attribute for responsive images has long been one of the more painful parts of web development due to its complex syntax needing to stay in sync with CSS. sizes="auto" support is nearly ready for broad use. Going further, Jason Grigsby proposes eliminating srcset entirely by leveraging Client Hints — letting the browser tell the server exactly what image size is needed, allowing a return to simple <img src="" alt=""> markup with lazy loading.

1m read timeFrom master.dev
Post cover image
108.6K Impressions3 Comments