GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - llylife/jquery_lazyload: jQuery plugin for lazy loading images

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

304 Commits
304 Commits

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
CHANGELOG.textile
CHANGELOG.textile
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
disabled.html
disabled.html
 
 
enabled.html
enabled.html
 
 
enabled_ajax.html
enabled_ajax.html
 
 
enabled_background.html
enabled_background.html
 
 
enabled_container.html
enabled_container.html
 
 
enabled_fadein.html
enabled_fadein.html
 
 
enabled_gazillion.html
enabled_gazillion.html
 
 
enabled_noscript.html
enabled_noscript.html
 
 
enabled_timeout.html
enabled_timeout.html
 
 
enabled_wide.html
enabled_wide.html
 
 
enabled_wide_container.html
enabled_wide_container.html
 
 
jquery.lazyload.js
jquery.lazyload.js
 
 
jquery.lazyload.min.js
jquery.lazyload.min.js
 
 
jquery.scrollstop.js
jquery.scrollstop.js
 
 
jquery.scrollstop.min.js
jquery.scrollstop.min.js
 
 
lazyload.jquery.json
lazyload.jquery.json
 
 
package.json
package.json
 
 

Repository files navigation

Lazy Load Plugin for jQuery

Lazy Load delays loading of images in long web pages. Images outside of viewport wont be loaded before user scrolls to them. This is opposite of image preloading.

Using Lazy Load on long web pages containing many large images makes the page load faster. Browser will be in ready state after loading visible images. In some cases it can also help to reduce server load.

Lazy Load is inspired by YUI ImageLoader Utility by Matt Mlinac.

How to Use?

Lazy Load depends on jQuery. Include them both in end of your HTML code:

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.lazyload.js" type="text/javascript"></script>

You must alter your HTML code. URL of the real image must be put into data-original attribute. It is good idea to give Lazy Loaded image a specific class. This way you can easily control which images plugin is binded to. Note that you should have width and height attributes in your image tag.

<img class="lazy" data-original="img/example.jpg" width="640" height="480">

then in your code do:

$("img.lazy").lazyload();

This causes all images of class lazy to be lazy loaded.

More information on Lazy Load project page.

Install

You can install with bower or npm.

$ bower install jquery.lazyload
$ npm install jquery-lazyload

License

All code licensed under the MIT License. All images licensed under Creative Commons Attribution 3.0 Unported License. In other words you are basically free to do whatever you want. Just don't remove my name from the source.

About

jQuery plugin for lazy loading images

www.appelsiini.net/projects/lazyload

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.