I tried to play with history.pushState()
in the latest Firefox and Chrome. It looks simple to use and in my current project I don't want to be bothered by supporting legacy browsers because it's a personal project where I can just experiment. So I wonder if there any caveats or nuances in working with it for which I would need some plugins that will make the life easier?
Asked
Active
Viewed 1,479 times
1

Reporter
- 3,897
- 5
- 33
- 47

Sergei Basharov
- 51,276
- 73
- 200
- 335
-
I prefer https://github.com/balupton/History.js/, which works seamlessly on all versions of IE, whilst using `pushState` on Chrome etc. It is not necessarily a plugin for jQuery but you can easily implement it with jQuery. – pimvdb Oct 21 '11 at 14:15
-
@pimvdb please help me with http://stackoverflow.com/questions/8744487/statechange-is-firing-whenever-i-do-a-push-state – aWebDeveloper Jan 05 '12 at 14:54
1 Answers
1
In my experience, the behavior of pushState()
is inconsistent across browsers. Checkout Remy Sharp's pushState demo. History.js seems to be a solid lib for this which also has graceful degradation.

airportyh
- 21,948
- 13
- 58
- 72
-
please help me with http://stackoverflow.com/questions/8744487/statechange-is-firing-whenever-i-do-a-push-state – aWebDeveloper Jan 05 '12 at 14:53