Last active
December 19, 2015 17:29
-
-
Save wmandrews/5991770 to your computer and use it in GitHub Desktop.
jQuery lazy load initialization and callback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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