2 ms·
> Little things like maintaining scroll position in the page's navigation bar […] are only achievable with a SPA-based approach. That’s not true. I wrote non-S
by layer8 4y ago
> Little things like maintaining scroll position in the page's navigation bar […] are only achievable with a SPA-based approach.
That’s not true. I wrote non-SPA web applications in the mid-aughts that maintained scroll position throughout server roundtrips, using JavaScript and storing the current scroll position in hidden fields upon submit. Even multiple scroll positions for nested panes. It also adjusted the saved scroll positions correctly when new elements were added to or removed from the page during the server roundtrip. This was encapsulated in a server-side HTML rendering framework.