Cache your scripts with localStorage
Storager case study: Bing, Google
Bing and Google made the top of the lists by utilizing localStorage for their scripts. Seems browser cache isn't good enough lol?
localStorage Vs. Browser Cache: jsPerf
Basket JS was created to use RequireJS style syntax to asynchronously load your scripts while also storing them in localStorage. Brilliant.
Do what the best are doing, use localStorage.
Written by Adam Argyle
Related protips
4 Responses
So where does browser cache fall short?
over 1 year ago
·
I guess you have more control over localStorage than over browser cache.
over 1 year ago
·
Falls short in speed. Check my updates tip for a link to a perf test between browser cache and localStorage.
over 1 year ago
·
Thanks for this! I'm looking forward to trying it out.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Localstorage
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#