Statechange is firing whenever i do a push-state
问题 I am using history.js to handle back button. In history.js statechange is firing whenever i do a pushstate. Why? 回答1: According to this discussion on github, it's expected behaviour of history.js This pull request claims to have modified history.js to be more inline with W3C Specs. 回答2: Wanted to add, yes this is the expected behaviour of History.js. At the same time there are more discussions that critize this behaviour as it is not the W3C standard and does create some confusion. In short,