This cacher module is an instance of Emitter module. Loads images and other web resources to have instant access in the future.
npm install spa-preloader
Add to the scope:
var preloader = require('spa-preloader');
There is a global var
DEVELOP
which activates additional consistency checks and protection logic not available in release mode.
If you have any problems or suggestions please open an issue according to the contribution rules.
spa-preloader
is released under the MIT License.