This version is old school.
Please find jQuery plugins on npm.
jQuery cacheImage
by Alex Rabarts
cacheImage is a simple jQuery plugin for pre-caching images. The plugin can be used to eliminate flashes of unstyled content (FOUC) and improve perceived page load time. Callbacks for load, error and abort events are provided.
Tags
Versions
Version
Date
1.0.0
Feb 14, 2013