When developing a Backbone.js mobile web app recently, I needed to create a unique history state without a unique URL when opening an overlay. This was done to allow the user to hit back in the browser and be returned to the view which launched the overlay. While solving this problem, I landed upon a concept of microstates which I thought might be of interest to other web app developers.
In this post I will first give an overview of the HTML5 History API, then talk about how to create a microstate in a Backbone app, and conclude with the implications of exposing microstates.
Your new post is loading...