How it works
The use is straightforward; everything is namespaced under
localcache. Everything should be called when the page loads, either with
window.onload or placing it just before
body closes. Options, common to all modes, is a map; possible values are:
load, by default false (if it's true, it will force loading of images without getting the cached version) and
Date object setting the minimum date a cached copy must have to be used. Else, it's just loaded.
Cross-site resource caching is NOT supported due to browser limitations. Just cache what you have in your own domain.
All the images must have the