Skip to content

Instantly share code, notes, and snippets.

@twokul
Last active August 29, 2015 14:15
Show Gist options
  • Save twokul/6cc415183360afbb5371 to your computer and use it in GitHub Desktop.
Save twokul/6cc415183360afbb5371 to your computer and use it in GitHub Desktop.
lazy-loading-image-in-ember
(function() {
// assuming the jQuery is defined
var image = $('img');
image.on('load', function() {
console.log('seems like the image is loaded!');
});
image.on('error', function() {
console.log('bummer! image cannot be loaded!');
})
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment