W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] <picture>, `img set`, and polyfills

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 14 May 2012 20:26:29 -0700
Message-id: <797AB8CE-E71F-4DEE-A6D4-F91F397CF18A@apple.com>
To: Mathew Marquis <mat@matmarquis.com>
Cc: whatwg@lists.whatwg.org

On May 14, 2012, at 4:17 PM, Mathew Marquis <mat@matmarquis.com> wrote:

> It’s worth noting that a practical polyfill may not be possible when using `img set`, for reasons detailed at length elsewhere:
> http://www.alistapart.com/articles/responsive-images-how-they-almost-worked-and-what-we-need/
> http://www.netmagazine.com/features/state-responsive-images
> Long story short: attempting to write a polyfill for `img set` leaves us in the exact situation we were in while trying to solve the issue of responsive images strictly on the front-end. We would be saddling users with a redundant download—first for the original src, then for the appropriately-sized source if needed. 

Interesting data point. Can you explain why this is the case for the <img srcset> syntax, but not for the <picture> syntax with an embedded <img>? I wasn't able to figure that out, from the articles you linked.

Received on Tuesday, 15 May 2012 03:26:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC