Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's pretty awesome! One thing I noticed is that it breaks the browser back button. I see you have some sort of coordinates in the URL, however changing these doesn't seem to do anything?


Perhaps use history.replaceState() instead of history.pushState() so it doesn’t create a new distinct entry each time, but you still get a URL you can bookmark or share with others?

https://developer.mozilla.org/en-US/docs/DOM/Manipulating_th...


Yeah, it essentially is storing a massive number of history items (seems to update the URL too much) and therefore you can never really go back to the previous page if you've scrolled around a lot...


It's amazing. He should work on the coordinates but they worked for me on refresh( onPageLoad ), but i think it should be GET request rather than Hash request


You wouldn't want to actually issue a new request each time the view is updated. A good solution would probably be to use `pushState` on browsers that support it and fall back to the current behavior for older browsers.


Yeah. pushState() and replaceState()


This has now been implemented. Check it out.


They do if you refresh the page, but doing something like this is a nightmare because it floods your browsing history with useless junk.

This should be changed immediately.


It has been fixed. The hashing thing was naive. Now it's only switched on if you start the viewing with a coordinates hash.


It should be GET request and Completely AJAX instead of HASH.


The updating of the location hash has now been fixed.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: