How we improved image download sizes on Medium with just four characters
How-to 7 min +70 XP
Adding "auto" to the sizes attribute of lazy-loaded images lets the browser pick the best srcset candidate from the actual layout, with no hand-written breakpoint rules.