4 ms·
<picture> is available in about half of the shipped browsers (http://caniuse.com/#search=picture http://caniuse.com/#search=picture) and there's a robust polyfi
by acdha 11y ago
<picture> is available in about half of the shipped browsers (http://caniuse.com/#search=picture http://caniuse.com/#search=picture) and there's a robust polyfill available: https://github.com/scottjehl/picturefill https://github.com/scottjehl/picturefill
- lewisl9029 11y agoWow. This is even more exactly what I was looking for. =) The polyfill looks amazing too. Looks like it polyfills both the picture tag itself as well as the srcset property on img that mrbig4545 mentioned.
- acdha 11y agoYeah, I prefer <picture> for two reasons – being able to gracefully use new image formats and being able to do art-direction type changes using media queries – but the great thing about the polyfill is that you're not forced to pick one.