mirror of
https://github.com/pxdg-afk/paxad.git
synced 2026-08-23 07:01:06 -04:00
14 lines
674 B
Markdown
14 lines
674 B
Markdown
---
|
|
title: "SPA Routing"
|
|
tags:
|
|
- feature
|
|
---
|
|
|
|
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.yaml` to be `false`.
|