tn-oww
Last Updated: February 25, 2016
·
2.244K
· 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

3552

So where does browser cache fall short?

over 1 year ago ·
3560

I guess you have more control over localStorage than over browser cache.

over 1 year ago ·
3581

Falls short in speed. Check my updates tip for a link to a perf test between browser cache and localStorage.

over 1 year ago ·
4685

Thanks for this! I'm looking forward to trying it out.

over 1 year ago ·