Skip to content

Instantly share code, notes, and snippets.

@wmandrews
Last active December 19, 2015 17:29
Show Gist options
  • Save wmandrews/5991770 to your computer and use it in GitHub Desktop.
Save wmandrews/5991770 to your computer and use it in GitHub Desktop.
jQuery lazy load initialization and callback
// lazy loading images
$c.find('.lazy').show().lazyload({
threshold: 600,
effect: 'fadeIn'
});
// lazyloader callback
$c.find('.lazy').load(function() {
// do something on load
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment