I also use the HTML5 cache manifest, which also supports the standalone case and is designed for your problem. Do not use local storage with base64 because:
- Base64 encoding increases file size up to 137% (!)
- The algorithm will slow down your application, because not only Internet Speed limits your application, but javascript cannot be executed as fast as on desktop computers. In my tests on mobile phones, I had problems with general javascripts, so I would reduce javascript to a minimum, and your context is not needed.
- Local storage is not supported in evertime mode and also has limitations!
w3.org - html5 Rocks .
chache HTML5, , , stackoverflow,