Polyfill for Proposed HTML Element for Picture

Here's a polyfill from Scott Jehl to be used to begin testing the newly proposed picture element. This element, much like the video element, would allow for multiple sources which could then be tied to media queries to enable different images to be used/loaded for different breakpoints. This would mainly benefit those working on Responsive Web Design. It's great to see some progress on Responsive Images.

Demo URL (check the source): http://scottjehl.com/picturefill/
Code on Github: https://github.com/scottjehl/picturefill

Embedded Link

Polyfilling picture without the overhead | Responsive Images Community Group
In an early post, I offered up a sample picture element implementation in JavaScript (a polyfill) that we could use to play with and plan how the element should behave when/if implemented. The script …

One thought on “Polyfill for Proposed HTML Element for Picture

  1. I’ve had a similar idea for a few weeks now. Interesting to see an actual implementation to pop up on my google reader šŸ™‚

Comments are closed.