4 ms·
Nice, but please consider switching to HTML5 history (pushState). It's just as easy and a lot cleaner. Especially that you can use popstate to let people switch
by mmahemoff 14y ago
Nice, but please consider switching to HTML5 history (pushState). It's just as easy and a lot cleaner. Especially that you can use popstate to let people switch the URL.
It's amazing anyway.
- mcrittenden 14y agoIf he were to use pushState for this, wouldn't he need a .htaccess (or other means) to point all requests to index.html? Meaning it's not just as easy?
- mmahemoff 14y agoYes, it is a bit more config on the server. The site can still be a FD at JS client though, you just need to make sure all paths link to it.
- Tobu 14y agoIt's also easy to get broken behaviour (on one site I use the url is updated without a new history entry, and even on GitHub the page sometimes gets desynced).