diff --git a/README.md b/README.md index 9441587..77bd8aa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Build Status](https://travis-ci.com/style-tools/lazy.svg?branch=master)](https://travis-ci.com/style-tools/lazy) [![Version](https://img.shields.io/github/release/style-tools/lazy.svg)](https://github.com/style-tools/lazy/releases) [![npm version](https://badge.fury.io/js/%40style.tools%2Flazy.svg)](http://badge.fury.io/js/%40style.tools%2Flazy) [![Latest Stable Version](https://poser.pugx.org/styletools/lazy/v/stable.png)](https://packagist.org/packages/styletools/lazy) -# Lazy Image and Iframe Loader +# Lazy 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. @@ -10,7 +10,7 @@ A lightweight lazy loader based on [Intersection Observer V2](https://developers - `.webp` rewrite with fallback (WebP support for `` 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). +- tiniest lazy load script `$z()` (300 bytes) #### Examples diff --git a/dist/lazy+data-attr+polyfill+events.js b/dist/lazy+data-attr+polyfill+events.js index 0c8bf54..014a23f 100644 --- a/dist/lazy+data-attr+polyfill+events.js +++ b/dist/lazy+data-attr+polyfill+events.js @@ -1,4 +1,4 @@ -(function(b,r,t){function e(c,a,d){c&&"string"!=typeof c&&(c instanceof Array||c.selector)||(c=[c]);var f=c[0]||c.selector||"[data-src]",b=c[1]||c.threshold||c.observer,e=c[2]||c.rootMargin,g;b="object"==typeof b?b:{rootMargin:e||"0px",threshold:b||0};c=c[4]||c.a||["click","mouseover"];if(a instanceof Array){var l=a[2];var p=a[1];a=a[0];p=p||a}a=a||function(a,c,d){d=a.getAttribute("data-srcset");c=a.getAttribute("data-src");d&&(a.srcset=d,a.removeAttribute("data-srcset"));c&&(a.src=c,a.removeAttribute("data-src")); -l&&l(a)};d=d||function(c,d){for(var b,e,f=0,g=c.length;f