Using pushState and replaceState - Will Schenk:https://willschenk.com/labnotes/2024/using_push_state/
-
Using pushState and replaceState - Will Schenk:
https://willschenk.com/labnotes/2024/using_push_state/Simpler solution: Do you really need a SPA? Traditional multi-page apps can be awfully fast...
-
@alcinnz The new navigation API makes all of this nicer, too:
Modern client-side routing: the Navigation API | Web Platform | Chrome for Developers
Learn about the Navigation API, a new API which adds improved functionality to build single-page applications.
Chrome for Developers (developer.chrome.com)
-
@alcinnz Along these lines, I've been blown away by htmx.org - sitting somewhere in the no-man's land between multi-page apps and full JS frameworks, it is blazing fast (especially on startup), only transmitting the data you need *right now*.
It implements these pushState/replaceState APIs so that URLs always *just work*, when doing that in client-side-js is just a nightmare.
I'm using #htmx on bandwagon.fm, and I could not imagine a toolset that's easier to use, and faster to run.