Created
July 20, 2013 06:26
-
-
Save spsaucier/6044073 to your computer and use it in GitHub Desktop.
Preload images
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
// Preload images, append, & hide | |
$("a").has('img').each(function() { | |
$('<img />').attr('src',$(this).data("large-image")).appendTo('body').hide(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment