Something went wrong. Try again.
Snapshot of https://codeberg.org/notplants/thimble-switcher; full Git branches and tags, copied 2026-09-06.
Something went wrong. Try again.
Files
- JavaScript 100%
README.md
thimble-switcher 🪡 #
thimble-switcher uses plain javascript to switch between the pages of a website on the client-side, as well as to pre-fetch all internal links from the current page, allowing for near-instant page-switching, even when there is high latency with the server.
this could be useful for sites that are book-like and involve switching between pages, or just make the experience of navigating a site more smooth.
if javascript is disabled, the fallback navigation will also work as expected.
thimble-switcher is composed of 87 lines of javascript.
this file can be included in any static site, to add client-site page switching to the site, by adding this file and a script tag to the head of the page:
<script src="/static/thimble-switcher.js"></script>