curious what the most minimal ssg or front-end framework is for client-side switching between pages without a full reload?
also not sure what the technical term for that is
i’ve a couple sites built with gastby such as https://canalswans.commoninternet.net but all of react feels like overkill
@notplants @decentral1se @j12i got a version working today using 87 lines of plain javascript https://codeberg.org/notplants/thimble-switcher
more optimizations could be possible via using gzip, or maybe storing prefetched pages using javascript variables would be faster than using the cache (?) but I kind of like that this could be subbed into any static site without making any other modifications to it
@notplants @decentral1se @j12i
Might wanna do the same thing on line 81 as an `else` statement for `if (newMainContent) {`, to handle all cases.
Really don't wanna get into a situation where user clicks a link and nothing happens.
@notplants @decentral1se @j12i
Ideally you could delay calling `event.preventDefault();` until after you know that the quick-nav was successful. But due to the async nature of the cache and fetch mechanic, i don't think thats possible.