imgcache.js - example without jQuery

  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

Check out the console to see what's going on - failure to load cordova is expected

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