Re: Catherine Azzarello #28, Markus Seyfferth #29, Henri Helvetica #33, and Bee Infotech #37 —
Re: #30 + #35 Michaael Femia —
Before this new markup was A Thing, I used a solution on my own site that was similar, but my fallback images were the bare minimum I felt legible (96 x 96px), and I had text links to all of the larger versions visible in case JS was disabled or broken. Which, even for non-“global-commerce-sites” happens more than you’d think.
I’m in the process of switching every site that I maintain over to the new markup and would encourage you to experiment with it, too. If browser support is a concern, use PictureFill! But at the very least, don’t put 1px by 1px images in your markup.
Re: #32 Bärli Legal —
vws are indeed, newish, and confusing if you’ve never encountered them before. I went back and forth on whether to devote a couple sentences to explaining them, but decided that they were outside the scope of the article, and hoped that anyone that was confused by them would look ’em up. They’re great!
sizes, yeah, it can get gnarly. But it can be left, simple, too. As I stated in the article, trading a tiny amount of sizes accuracy for a lot of readability is often a much smarter choice.
Re: #36 David 2 and #43 jallred —
That’s the dream – that bandwidth (and/or data-plan) considerations will get worked into browsers’ srcset picking logic, too. That’s a hard problem, and expect there to be user preferences about this sort of thing (“prefer low-res images”) before anything super-smart and automatic. But this is what everyone wants and what browsers are working towards.
Re: #38 Brian Hughes —
Changes in viewport size can trigger requests for new resources, and if your primary goal is to limit the total amount transferred, and if users are changing orientations a *lot* for whatever reason on your site, that’s something that you’d be wise to consider.
But, what Zach #39 said — if orientation changes aren’t the majority case, sending bigger resources up front just in case an orientation change happens will be wasteful for most of your users.
Re: afarkas —
Thanks a million for jumping in and answering a bunch of these!