Talking about the localStorage limits - 2MB
A short talk about disk space and how much storage can you actually have in your HTML5 localStorage object. The current suggested amount is up to 2MB.
Video Transcript
00:00Alright, welcome back, this is going to be a really short video, I wanted to talk about disk space
00:04and how much storage could you actually have in your page.
00:07So actually, it's kind of open ended right now, but the suggestion from the W3C for the HTML5 documentation
00:15is literally the suggested amount is 5 megabytes, which is a lot of data which you could do a lot with it.
00:24So, don't go crazy with data, do try to make sure that you don't cross too far,
00:29it's not really clear how it's going to pan out, it might be that after you cross 5 megabytes in the browser
00:33we'll ask the user could we store more data inside, or you might get to that maximum amount of data
00:38and get some sort of an error. We don't really know yet, it's still in development, it's not finalized
00:44at this stage when we're making these videos, so that's something that you should be very aware of.
00:47Don't go crazy with the amount of copy that you store inside of your local storage,
00:52it's really meant for long term things that you want to keep inside of the user's profile
00:57that shouldn't be directly on the website or to reduce the strain on your server itself
01:01by moving it into the client side. Alright, so that covers that topic.
01:07In the next video we're going to start a new topic which is going to be the session storage.
