Skip to content

Commit

Permalink
Removed delay_load recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Verlicchi committed May 15, 2020
1 parent a2ef380 commit 2477591
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,27 +488,6 @@ var myLazyLoad = new LazyLoad({
[DEMO](https://verlok.github.io/lazyload/demos/cancel_on_exit.html) | [SOURCE](https://github.com/verlok/lazyload/blob/master/demos/cancel_on_exit.html) | [API](#-api)
### Delay loading
> 💡 **Use case**: to start loading elements that stayed inside the viewport for a given amount of time.
HTML
```html
<img class="lazy" alt="A lazy image" data-src="lazy.jpg" width="220" height="280" />
```
Javascript
```js
var myLazyLoad = new LazyLoad({
elements_selector: ".lazy",
load_delay: 300 //adjust according to use case
});
```
[DEMO](https://verlok.github.io/lazyload/demos/delay.html) | [SOURCE](https://github.com/verlok/lazyload/blob/master/demos/delay.html) | [API](#-api)
### Lazy functions
> 💡 **Use case**: when you want to execute arbitrary scripts or functions when given elements enter the viewport
Expand Down

0 comments on commit 2477591

Please sign in to comment.