Today I released version 2 of picturePolyfill, the real
picture element polyfill.
The great news about version 2 of PicturePolyfill is that it supports the real
picture tag, and it gives you the ability to create responsive images TODAY.
To have responsive images, include the picturePolyfill.min.js script in your page and mark up your images as you see below.
To support HD (Retina) displays
To support only standard resolution displays
If you have an image server for automated scaling
Here’s the picturePolyfill demo on GitHub.io
To know more about the script and about the script, read the picturePolyfill project page on GitHub.
Please drop a comment to tell me what you think about the script.