Last Updated: February 25, 2016
·
2.433K
· argyleink

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.

4 Responses
Add your response

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 ·