Skip to content
Permalink
Browse files

1.1.0

  • Loading branch information...
optimalisatie committed Aug 8, 2019
1 parent 077238d commit 4234aceacda1d4ba4bd6914275ba22ea67e037e6
Showing with 10 additions and 1 deletion.
  1. +10 −1 README.md
@@ -2,7 +2,7 @@

# Lazy Image and Iframe Loader

A lightweight lazy loader based on [Intersection Observer V2](https://developers.google.com/web/updates/2019/02/intersectionobserver-v2) with a tiny fallback for old browsers.
A lightweight lazy loader based on [Intersection Observer V2](https://developers.google.com/web/updates/2019/02/intersectionobserver-v2) with a tiny fallback for old browsers.

```javascript
$lazy(
@@ -11,6 +11,15 @@ $lazy(
);
```

Lazy loading of `background-image` in stylesheets.

```javascript
$lazybg(
sheets, /* stylesheet element(s), default: document.styleSheets (all)
resolver /* optional: JSON or javascript image resolver */
);
```

#### Documentation is available on [docs.style.tools/lazy](https://docs.style.tools/lazy).

### Install via npm

0 comments on commit 4234ace

Please sign in to comment.
You can’t perform that action at this time.