{{#extend "layout"}}{{#content "main"}}
To lazyload images, backgrounds and videos, we use lazysizes. Be sure to read the documentation.
img.lazyload(data-src="image.jpg", alt="")div.lazyload(data-bg="image.jpg")Lazysizes also supports responsive images, but again, just read the documentation. If you need support for background-images, videos and what not see unveilhooks.
Resize your browser (a refresh is needed in some browsers). If you'd like to make it crossbrowser, consider including Picturefill 3 (in alpha as of this writing) or Respimage.
