Cache and load static files from local storage. This makes it easier to manage Javascript and other files for offline use, or just to improve the startup time of your web app.
Simply instantiate a new BootUp object with an array of files to load.
new BootUp(files, options);
Where:
- files: an array of URLs to load,
- options: an object literal (optional)
A callback for when all files have loaded successfully.
A callback for when at least one file has failed.
This callback will fired after a file has successfully downloaded.
- downloadedCount returns the number of items that have successfully downloaded so far.
- fileCount returns the number of files remaining.
- path is the path of the file.
- data is the contents of the file.
The maximum number of files to download at the same time. The default is 8.
Set to true to have logged console output.
Set to true to delete the local storage cache and redownload everything.
This project is licensed under the LGPL, see the LICENSE.TXT file for more information.