Imager.js

The following is an example of lazy loading images (i.e. the process of not loading an image until it appears on screen)

We've purposely not initialised Imager yet, this is to show you what the placeholders look like before Imager has been run. You'll see the placeholders have a top margin (for the purpose of pushing them off screen, so we can make sure Imager is working properly) and also we've given them a top border of 1px red so you can visually see them.

To initialise Imager press the following button

We've also set the scrollDelay (i.e. the delay between scrolling and replacing a placeholder with an image) to be very high (two seconds). This is so you can visually see the lazy-loading of images as they happen.

The default value is 250ms but you can override that to your own preference.