Hacker News new | past | comments | ask | show | jobs | submit login

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.




If 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?


Yes, 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.


It'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).




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: