3 ms·
I've been using LZString for data I put in LocalStorage. Obviously you can still hit the limit, but it takes quite a bit longer. http://pieroxy.net/blog/pages/l
by Fishkins 13y ago
I've been using LZString for data I put in LocalStorage. Obviously you can still hit the limit, but it takes quite a bit longer.
http://pieroxy.net/blog/pages/lz-string/index.html http://pieroxy.net/blog/pages/lz-string/index.html
- diurnalist 13y agoNice! Thanks for the link. I've opened an issue for us to track adding compression in and out of the cache here: https://github.com/diurnalist/dynosrc/issues/4 https://github.com/diurnalist/dynosrc/issues/4
- recuter 13y agoQuite a bit being basically twice as long. So you're up to localstorage being usable with 6-10MB now which is nothing to sneeze at.
- Fishkins 13y agoFor the data I was compressing (JSON) it was getting it to about 17% of the original size. Obviously that will vary depending on your data.