wbinnssmith / skate-picturefill

srcset and <picture> polyfill with mutation observation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

skate-picturefill

Simply require('skate-picturefill') and freely use the srcset and <picture> APIs. Skate handles mutation observation so that subsequent updates are reflected by picturefill.

This module also provides deferred image loading. Simply require('skate-picturefill/lazy') instead, and use data-srcset and data-src in addition to their native counterparts, which should hold placeholders instead.

LICENSE

MIT

About

srcset and <picture> polyfill with mutation observation

License:MIT License


Languages

Language:CSS 59.6%Language:JavaScript 24.1%Language:HTML 16.3%