News for hackers. Stuff that matters.
Re:We need to kill off the localStorage API by kinlan on Tuesday February 28, 2012 @06:33AM (#3642795)
The async api with bells and whistles is supposed to be indexedDB.

It would have been nicer to have an async mode for localStorage, but even then I don't think it covers it. I really worry that developers are starting to try and build serious apps on it and it just won't work..

Question: what happens if your gamestate gets over 5Mb?

Re:We need to kill off the localStorage API by ajuc on Tuesday February 28, 2012 @07:08AM (#3642887)
> Question: what happens if your gamestate gets over 5Mb?

I hope it won't, because I only save stuff that changes. I can compress biggest data, if it becomes a problem, to get more space, but I don't think I'll have to.

Anyway - it's not a problem of API, but of constraints of browser implementations. There's nothing preventing browsers from implementing configuration option that allows users to assign available space in localStorage to domains.