Basket.js – Caches Scripts with localStorage
LocalStorage is a simple API within modern browsers to allow web developers to store small amounts of data within the user’s browser.
Basket.js is a script and resource loader for caching and loading scripts using localStorage. It’s supports locally caching scripts in any browser.
basket.js will remove entries from the cache beginning with the oldest and try again. To free space basket.js will only remove cached scripts that it placed in localStorage itself. The data stored by other code in same origin will not be touched.