Srcery

Responsive images done right

Ever want to have multiple resolutions of one image on a webpage?

This image loading plugin makes it easy to create HTML images that are responsive, lazy loading, so you can use images that look great at any size or resolution while reducing load time and saving bandwidth.

Features

Source Code (6.15KB)

Minified Code (878 bytes gzipped)

Examples:

simple image (nothing special)

lazy load image

large image, or small image

HD image, that scales down

HD image, lazy loading, with fallback for no JavaScript

To use Srcery

  1. Start with regular HTML image tags
  2. Add a srcset, like in the examples above
  3. Then add one tiny script before the end body tag, like this

back top ⬆︎