4 ms·
history.pushState() and history.replaceState() are introduced in the html 5 spec, so not all browsers support it yet.
by gnubardt 16y ago
history.pushState() and history.replaceState() are introduced in the html 5 spec, so not all browsers support it yet.
- sjs382 16y agoTest for the API and fall back to the hashbangs if it isn't available. Check out this example in an old browser and a modern one: http://www.asual.com/jquery/address/samples/express/portfolio http://www.asual.com/jquery/address/samples/express/portfoli...
- ZoFreX 16y agoMy point was the degradation to hashbang (which is what most users are going to see) is absolutely horrid, to the point that I would actively avoid it.
- sjs382 16y agoYou're concerned about /content/123/#!/content/456/, right? Well, if the client isn't modern, 301 them to #!/content/456/ and proceed as you would. Either way though, all this is terrible for a blog, or even Twitter.