Is there a way to store a html, javascript and css files in html5 local storage?
I want make my webapplication faster!
Thanks
You want to use the Application Cache for this, not localStorage:
http://www.html5rocks.com/en/tutorials/appcache/beginner/
You don't use HTML5 Local storage for CSS/JS files in, you cache them.
I suggest to use cache on client and server side instead of storing in local storage this way you have control on when to update(invalidate cache), you can also consider using CDN to deliver static content like images, js, css
Even though it's not the best solution, it is possible to cache most of the interface with local storage. Christian Heilmann discussed a lot of ideas in his 2010 24Ways article. Have a look at this screencast for a full example along the lines you're thinking.
Note that to cache images in local storage you will need to Base 64 encode them first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With