Skip to content

Files

Latest commit

3ebab3d · Dec 27, 2019

History

History
13 lines (8 loc) · 252 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 252 Bytes

imgdefer

Vanilla JavaScript module to defer image load

Usage

By default, each element with data-defer will defer loading of the <img> src or element background-image.

import imgdefer from "@aliasproject/imgdefer";

imgdefer();