Archive for the 'Meta' Category

Finding out the size of localStorage

In the next update of Process Street we are adding more caching to our front end JavaScript client (named Front Street after the street in Toronto) in an effort to make the experience of using our app as fast as possible.

Front Street uses web storage (specifically localStorage) to store persistent user data. To make the cache as effective as possible, it should be able to grow to use as much space as it can. However, we also store other information in localStorage, like user session information (the user’s login token and list of teams, for example). That means if the cache grew to use all the localStorage space, the app couldn’t function properly. Thus, we needed a way to detect the size of localStorage so we could partition localStorage between cache and session information.

Read more »

Hello!

Welcome to my blog.  It’s still under construction so, uh, look out for falling rocks!  Ouch, one just hit me.