3 ms·
Do you have an example of a site which does it well?
by bloaf 7y ago
Do you have an example of a site which does it well?
- kowdermeister 7y agoThere are many good ones, but after a quick bookmark search, this shop is done really well, imho: https://www.shopflamingo.com/ https://www.shopflamingo.com/
- thekingshorses 7y agoThis 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.
- mceachen 7y agoYou 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.
- M4v3R 7y agoThe blog of Svelte, the framework/compiler that was featured on HN some time ago works really well in my opinion: https://svelte.dev/blog https://svelte.dev/blog
- bloaf 7y agoI 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 https://imgur.com/a/YcRtDFj
- thekingshorses 7y agoIt requires special attention to do it right. It should be more about what works best for your product. https://reddit.premii.com 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.