2
0
Fork 0
Find a file
2016-01-14 22:42:13 +01:00
example Added lots op options 2016-01-14 22:42:13 +01:00
.gitignore made example working 2015-12-23 01:16:54 +01:00
.project Added lots op options 2016-01-14 22:42:13 +01:00
es5-ff-spa-loader.js Added lots op options 2016-01-14 22:42:13 +01:00
package.json Added lots op options 2016-01-14 22:42:13 +01:00
README.md Added lots op options 2016-01-14 22:42:13 +01:00

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