I'm creating a page that uses history.pushState()
which is only supported by html5 browsers. As such, should users of older browsers have a different experience? Here are two options that I can think of:
- html5_user hits a button on
/blah/
(some js happens) and he gets apushState
to/blah/page2/
- IE6_user hits a button on
/blah/
(some js happens) and he gets a hash of/blah/#page2/
- html5_user hits a button on
/blah/
(some js happens) and he gets apushState
to/blah/page2/
- IE6_user hits a button on
/blah/
(some js happens) and he gets a js command oflocation.href = /blah/page2/
The advantage of the first way is that the IE6 user doesn't need a pageload also it's easier to program as I can leave the heavy PHP stuff alone, and the advantage of the second way is that the url always looks consistent.
Which technique is better?
Also is there another way to do this?