Hacker News new | ask | show | jobs
by aioprisan 4970 days ago
There is also a size limit of 5MB that you should be aware of.
1 comments

That is the default, not the limit. In all modern browsers, this limit is either 5MB, or set to prompt when the web page requests any larger.
For localStorage? I can't find any information on that. I know this is the case for Web SQL databases. But as far as I understand, localStorage is hard coded with no chance of expansion. To make matters worse, localStorage uses strings, effectively cutting your storage a good deal.