Skip to content

A very lightweight jQuery plugin to lazy load images

Notifications You must be signed in to change notification settings

dreimsbach/unveil

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#unveil.js Modified version of the original Plugin by plugin by Luís Almeida.

  • Parameters are now passed via object
  • Added option to pass callback handler (will be executed after lazy loading):
var 
  logHandler = function() {
    console.log($(this).attr("src") + " loaded");
  },
  options = {
    "threshold": 300, 
    "callback":logHandler
  };

$("img").unveil(options);

Click [here] (http://htmlpreview.github.io/?https://github.com/dreimsbach/unveil/blob/master/index.html) for a demo.

###License Unveil is licensed under the MIT license.

About

A very lightweight jQuery plugin to lazy load images

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%