basket.js caches scripts with HTML5 localStorage

I was thinking about doing this. Check it out guys. Go Addy! I might draw up some demos soon. Stay tuned.

I found that the mobile version of Bing used localStorage to reduce the size of their HTML document from ~200 kB to ~30 kB.



basket.js is a small JavaScript library supporting localStorage caching of scripts. If script(s) have previously been saved locally, they will simply be loaded and injected into the current document. If not, they will be XHR’d in for use right away, but cached so that no additional loads are required in the future.

Project Log Project GitHub