Caching javascript in localstorage?

Oscar Brito


Why localStorage?

Tests by Google and Bing have shown that there are performance benefits to caching assets in localStorage (especially on mobile) when compared to simply reading and writing from the standard browser cache. This project is currently working on replicating these tests in the public so that we have definitive statistics on whether this is true.
We believe that in time, once implementers have optimized localStorage, it will become more feasible to use cross-browser.
 Steve Souders says:
http://www.stevesouders.com/blog/2011/03/28/storager-case-study-bing-google/ :
Bing and Google Search make extensive use of localStorage for stashing SCRIPT and STYLE blocks that are used on subsequent page views.
Are Bing and Google Search onto something? Yes, definitely.
As I pointed out in my previous post, this is another example of a performance best practice that is used on a top mobile site but is not in the recommendations from Page Speed orYSlow.

LINKS:
http://addyosmani.github.com/basket.js/
http://www.stevesouders.com/blog/2011/03/28/storager-case-study-bing-google/



Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.