Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vvo/lazyload
:bullettrain_front: Lazyload images, iframes, widgets with a standalone JavaScript lazyloader
https://github.com/vvo/lazyload
Last synced: about 1 hour ago
JSON representation
:bullettrain_front: Lazyload images, iframes, widgets with a standalone JavaScript lazyloader
- Host: GitHub
- URL: https://github.com/vvo/lazyload
- Owner: vvo
- License: mit
- Created: 2012-02-01T13:26:47.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T10:30:28.000Z (almost 4 years ago)
- Last Synced: 2024-12-07T03:48:35.299Z (7 days ago)
- Language: JavaScript
- Homepage: https://vvo.github.io/lazyload/
- Size: 5.3 MB
- Stars: 938
- Watchers: 38
- Forks: 158
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
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">