https://github.com/dimchtz/jquery.lazy
A tiny JQuery plugin to enable image lazy loading.
https://github.com/dimchtz/jquery.lazy
Last synced: 10 months ago
JSON representation
A tiny JQuery plugin to enable image lazy loading.
- Host: GitHub
- URL: https://github.com/dimchtz/jquery.lazy
- Owner: DimChtz
- License: mit
- Created: 2018-07-27T22:50:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T22:59:22.000Z (almost 8 years ago)
- Last Synced: 2025-03-28T17:21:37.720Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery.lazy
A tiny JQuery plugin to enable image lazy loading.
# How to use jquery.lazy
## Step 1: Include jquery.lazy.js after jquery
```html
```
## Step 2: Your image elements should be like this:
```html

```
## Step 3 ( Alternative ): If your images don't have the lazy attribute but a class or an id:
```html

```
```javascript
$('img.some-random-class').lazy();
```