pushState: what exactly is the state object for?
I've read a dozen of times now that the state object could exists of multiple key|value pairs and that it is associated with the new history entry. But could someone please give me an example of the benefits of the state object? Whats the practical use of it? I can't imagine why not just typing in {} janfoeh Take this small example: run fiddle ( editor view ): You have a page where a user can select a color. Every time they do, we generate a new history entry: function doPushState(color) { var state = {}, title = "Page title", path = "/" + color; history.pushState(state, title, path); }; We