#8framework: opt-in client-side router

  • avatar~clovercommented · 1 year ago
    Author
    Owner

    my original experimentations in 2022 had a client-side router that was about 2kb, so it could be defer-loaded on every page. it made navigation faster and could perform pre-fetching. my reasons for not having it on this site is:

    • it used a custom binary format for pages, which i did not port over. this format gave layouts unique IDs so it could tell when to switch out the entire page, or just the content. it also knew about client-side component islands, which is a concept that got removed as sitegen no longer follows react-like "use client" boundaries.
    • i wanted to use CSS view transitions, but animated view transitions don't actually look that good.
    • paperclover.net is fast enough once the technology layer was simplified.

    it would be cute to have this back though, the tech was really ahead of it's time.

  • avatar~clover changed the status to Todo · 1 year ago
  • avatar~clover added label feat · 1 year ago
  • avatar~clovercommented · 7 months ago
    Author
    Owner

    not cancelled in light of #90