From f1c9ca495e450ecb62dade70c4b60d86e106f79c Mon Sep 17 00:00:00 2001 From: vintro <77507980+vintrocode@users.noreply.github.com> Date: Mon, 14 Aug 2023 00:19:50 +0000 Subject: [PATCH] docs: note about existing content at same path on different branches --- content/features/SPA Routing.md | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/content/features/SPA Routing.md b/content/features/SPA Routing.md index e46b4c7..3004af9 100644 --- a/content/features/SPA Routing.md +++ b/content/features/SPA Routing.md @@ -1 +1,7 @@ -Single-page-app style rendering. This prevents flashes of unstyled content and improves smoothness of Quartz \ No newline at end of file +Single-page-app style rendering. This prevents flashes of unstyled content and improves the smoothness of Quartz. + +Under the hood, this is done by hijacking page navigations and instead fetching the HTML via a `GET` request and then diffing and selectively replacing parts of the page using [micromorph](https://github.com/natemoo-re/micromorph). This allows us to change the content of the page without fully refreshing the page, reducing the amount of content that the browser needs to load. + +## Configuration + +- Disable SPA Routing: set the `enableSPA` field of the [[configuration]] in `quartz.config.ts` to be `false`. -- Gitblit v1.10.0