1000ch / Srcset Image
Polyfill for srcset feature as Web Components.
Programming Languages
javascript
184084 projects - #8 most used programming language
<srcset-image>
About
Polyfill for srcset feature as Web Components.
Usage
Load srcset-image.js
in your HTML.
<script src='srcset-image.js'></script>
Modify your <img>
elements such as following (srcset feature specification).
<img is='srcset-image' src='image.jpg' srcset='image-1.5x.jpg 1.5x, image-2x.jpg 2x'>
Fallback
If browser does not support document.registerElement()
, Images will be loaded as usual.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].