Package Exports
- images-responsiver
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (images-responsiver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Images Responsiver
Images Responsiver is a simple solution for most responsive images needs.
Responsive images are difficult to implement, but they're required to provide a good performance to Web users.
Images Responsiver transforms simple <img src="…"> HTML tags into better responsive images syntax with srcset and sizes attributes. Knowing that <picture> is only required for rare advanced usages, Images Responsiver should be enough for most use cases, known as Resolution Switching. Read this article on Cloudfour's blog to know more of the theory.
Images Responsiver is also available as a plugin for Eleventy, a great Static Site Generator: eleventy-plugin-images-responsiver. It allows authors to use the simple and standard Markdown syntax for images () and yet get responsive images in the generated HTML, with srcset and sizes attributes.
Documentation
Images Responsiver documentation is awaiting a full rewrite.
In the mean time, most of the documentation for eleventy-plugin-images-responsiver, the Eleventy plugin that uses it, should be enough to understand how it works.
"Just" replace any Markdown with the HTML it is transformed into, and use the same configuration to get the same result.
Authors
- Nicolas Hoizey: Idea and initial work, maintainer
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License.