srcset-polyfill
srcset-polyfill copied to clipboard
Patch abernier bunchofthings
Among:
- global
srcsetobject - update all images at once:
srcset.update() - update one image at a time:
srcset.imgs.get(<img>).update() - a
'srcchanged'event dispatched on the<img>when changingsrc -
data-srcsetfavored in order to keep backward compatible with the new spec (especially in chrome which was complaining aboutFailed parsing 'srcset' attribute value since it has multiple 'x' descriptors or a mix of 'x' and 'w'/'h' descriptors.) - new simple build system based on browserify