Skip to content

jensarps/AMD-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
});

About

A localStorage cache plugin for AMD loaders.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published