Load images based on screen visibility. A tiny, tiny vanilla JavaScript lazy loading script. Did I say tiny? 258
bytes gzipped (445
bytes uncompressed).
Note that the threshold is intentionally set to a lower value so you can see the loading event.