Skip to content
A localStorage cache plugin for AMD loaders.
JavaScript HTML
Find file
Failed to load latest commit information.
example Initial commit Dec 5, 2011
.gitignore
LICENSE Initial commit Dec 5, 2011
README.md
cache.js
cache.uncompressed.js Appending the //@sourceURL attribute to each file loaded from local s… Jul 19, 2013

README.md

About

AMD-cache is a plugin for AMD loaders. It will store loaded modules in localStorage, if available. For subsequent page loads that module will be loaded from localStorage and not trigger a network request.

Usage

Download the chache.js file. In your code, prefix the module that you require() with cache! like this:

require(['cache!myModule'], function(myModule){
  myModule.doSomething();
});
Something went wrong with that request. Please try again.