tn-oww
Last Updated: February 25, 2016
·
2.18K
· argyleink
4146f0a7de7dbfd047abe6e7fda1b407

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.

Say Thanks
Respond

4 Responses
Add your response

3552
D42a7264714dee5006b9c99d2567a320

So where does browser cache fall short?

over 1 year ago ·
3560
17f1dc85e6bf0e7cd2525ed1b7fe3175

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

over 1 year ago ·
3581
4146f0a7de7dbfd047abe6e7fda1b407

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
70e1167dbde5397557b0ec6fabb3d90a

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

over 1 year ago ·