https://github.com/vvo/lazyload
:bullettrain_front: Lazyload images, iframes, widgets with a standalone JavaScript lazyloader
https://github.com/vvo/lazyload
Last synced: 7 months 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 14 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T10:30:28.000Z (almost 5 years ago)
- Last Synced: 2025-05-07T23:26:32.866Z (7 months ago)
- Language: JavaScript
- Homepage: https://vvo.github.io/lazyload/
- Size: 5.3 MB
- Stars: 937
- Watchers: 35
- Forks: 151
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
- awesome-wpo - lazyload - Lazyload images, iframes, widgets with a standalone JavaScript lazyloader ~1kb (Lazyloaders / Meetups)
- awesome-frontend - lazyload.js
- fucking-awesome-wpo - lazyload - Lazyload images, iframes, widgets with a standalone JavaScript lazyloader ~1kb (Lazyloaders / Meetups)
- awesome-frontend - lazyload.js
- awesome-front-end - lazyload.js
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 [](https://david-dm.org/vvo/lazyload) [](https://david-dm.org/vvo/lazyload#info=devDependencies)
Lazyload images, iframes or any src* element until they are visible in the viewport.
[](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">