News for hackers. Stuff that matters.
Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by Fishkins on Tuesday November 12, 2013 @05:17PM (#6721667)
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
Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by diurnalist on Tuesday November 12, 2013 @05:33PM (#6721830)
Nice! 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
Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by recuter on Tuesday November 12, 2013 @05:53PM (#6721965)
Quite 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.
Re:Eliminate HTTP requests using JavaScript diffs and LocalS... by Fishkins on Tuesday November 12, 2013 @07:56PM (#6722615)
For 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.