1,011 B
1,011 B
es5-ff-spa-loader
A javascript library providing server defined loading of resouces for a single page application.
Installation
Use the es5-ff-spa-loader.js in header as script resource or inline in body.
Usage
On index.html
FFSpaLoader.start(...);
Options
- url = The url to fetch resources list from.
- debug = Enable console debug output.
- cachePrefix = The cache key prefix. (default: 'sync-')
- cacheGetFn = example; 'function(key) {return localStorage.getItem(key);}'
- cacheSetFn = example; 'function(key,value) {localStorage.setItem(key,value);}'
- cacheDelFn = example; 'function(key) {return localStorage.removeItem(key);}'
Example Application
There is a fully working express example application in the example folder. todo
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
0.1.x
- Initial release