A basic implementation of loading images when they move into the viewport.
Using a placeholder to preserve a fixed aspect ratio space for content to load into.
Implementing a class name toggle to add a jazzy loading animation.
A more advanced implementation demonstrating how to load picture elements.
This demo toggles a class name when a square moves fully into view