Skip to content

Instantly share code, notes, and snippets.

@rexmondo
rexmondo / README.md
Created January 26, 2019 00:12
SCRIPT-8
@rexmondo
rexmondo / jquery.preload.js
Last active August 29, 2015 14:25
jQuery.preloadPreload images using the promise patter
/**
* jQuery.preload
*
* Preload images using the promise pattern.
*
* Usage:
*
* $.preload(img_uri, img_uri, ...).done(function(img, img, ...) {
* // Do stuff with the arguments
* });