From 79e828696a9e53357f61bd89c36e41555575c2c2 Mon Sep 17 00:00:00 2001 From: Jacky Zhao <j.zhao2k19@gmail.com> Date: Sat, 12 Aug 2023 05:47:50 +0000 Subject: [PATCH] feature docs --- 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 9124993..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 +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