Skip to content

Commit

Permalink
1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
optimalisatie committed Feb 19, 2020
1 parent c8d9878 commit 098cef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

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.

#### Features

- efficient polyfill for old browsers (zero effect on modern browsers)
- `.webp` rewrite with fallback (WebP support for `<img>` tag, saves a server-side redirect)
- `inview` and `out-of-view` callback (persistent observer for advanced element-in-view usage)
- `$lazybg` for lazy loading of `background-image` in stylesheets (CSS-variables)
- tiniest lazy load script `$z()` (300 bytes).

#### Examples

```javascript
$lazy(
selector, /* string, Node, NodeList or observer config object */
Expand Down

0 comments on commit 098cef5

Please sign in to comment.