Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vvo/lazyload

:bullettrain_front: Lazyload images, iframes, widgets with a standalone JavaScript lazyloader
https://github.com/vvo/lazyload

Last synced: 17 days ago
JSON representation

:bullettrain_front: Lazyload images, iframes, widgets with a standalone JavaScript lazyloader

Awesome Lists containing this project

README

        

**NOTE FROM MAINTAINERS**
This library is still working but not actively maintained, we recommend you use https://github.com/ApoorvSaxena/lozad.js first rather than this one.
**/NOTE FROM MAINTAINERS**

# lazyload [![Dependency Status](http://img.shields.io/david/vvo/lazyload.svg?style=flat-square)](https://david-dm.org/vvo/lazyload) [![devDependency Status](http://img.shields.io/david/dev/vvo/lazyload.svg?style=flat-square)](https://david-dm.org/vvo/lazyload#info=devDependencies)

Lazyload images, iframes or any src* element until they are visible in the viewport.

[![Selenium Test Status](https://saucelabs.com/browser-matrix/lazyloadvvo.svg)](https://saucelabs.com/u/lazyloadvvo)

## Install

```shell
npm install lazyloadjs --save
```

Also available for `` users:
- https://cdnjs.com/libraries/lazyloadjs

## Simple example

See more [examples](examples/).

```html
<!DOCTYPE html>
<html>
<head>
<title>lazyload</title>
</head>
<body>
<script src="lazyload.min.js">