Calculate How Much Web Storage You’re Using
This is a quick one, but it’ll be a post I return to over and over again. When you use Web storage (a.k.a. DOM storage) – localStorage or sessionStorage – to cache data, you’ll often want to know how much you’ve used already. Each browser gives you a different amount of storage to work with,…