News for hackers. Stuff that matters.
Re:Browsers are pretty good at loading pages by bloaf on Sunday July 21, 2019 @04:25PM (#20493446)
Do you have an example of a site which does it well?
Re:Browsers are pretty good at loading pages by mceachen on Sunday July 21, 2019 @04:56PM (#20493609)
You can try PhotoStructure (disclaimer, I'm the author). It's an image gallery built with Vue and vue-router (for your images). If you look at the vue-router documentation, they've got some examples to follow.

The back/forward buttons, command-click, and ctrl-shift-t work on all modern desktop and mobile browsers.

I started with traditional page loads, but even with minimal css and no js, screen flashing between pages was prominent (especially on mobile), and visual transitions between pages (like swipe navigation where both prior and next page content is concurrently visible) is difficult.

Re:Browsers are pretty good at loading pages by kowdermeister on Sunday July 21, 2019 @04:45PM (#20493545)
There are many good ones, but after a quick bookmark search, this shop is done really well, imho: https://www.shopflamingo.com/
Re:Browsers are pretty good at loading pages by thekingshorses on Sunday July 21, 2019 @10:09PM (#20494918)
This is what makes it worse.

If you scroll down on the page, and click on the link, it takes you to a new page. Works great.

If you use browser back button, it takes you to the previous page, but scroll position is lost.

Re:Browsers are pretty good at loading pages by thekingshorses on Sunday July 21, 2019 @10:17PM (#20494945)
It requires special attention to do it right. It should be more about what works best for your product.

https://reddit.premii.com - Uses client side navigation. Try it on mobile and then desktop. Its not perfect, but works really good for what I want. Its hosted as a static site. I make request to reddit directly to get the content.

Re:Browsers are pretty good at loading pages by M4v3R on Sunday July 21, 2019 @05:30PM (#20493794)
The blog of Svelte, the framework/compiler that was featured on HN some time ago works really well in my opinion: https://svelte.dev/blog
Re:Browsers are pretty good at loading pages by bloaf on Sunday July 21, 2019 @05:41PM (#20493843)
I don't know if their javascript is to blame, but I got this when I tried to use the back button: https://imgur.com/a/YcRtDFj