imgcache.js - example #2

  1. Open page locally (file:// in Chrome) or in Phonegap/Cordova
  2. Work offline
  3. Reload the page (or re-start the web app)
  4. You should see the images reloaded from the cache

Note: this is using version 2.x of the imagesloaded library, use of current version might differ

Don't forget to accept your browser request to store data on the local computer!

If this file is opened in Chrome from a "file://" url, run Chrome with the following flags: --allow-file-access-from-files --allow-file-access in order to avoid a security error.

Otherwise run the page from a web server - More info

Random test images