···13## Running Tests
1415The tests will automatically:
16-171. Build the prefetch.js bundle (via `cargo xtask build-maudit-js`)
182. Start the Maudit dev server on the test fixture site
193. Run the tests
···47## Features Tested
4849### Basic Prefetch
50-51- Creating link elements with `rel="prefetch"`
52- Preventing duplicate prefetches
53- Skipping current page prefetch
54- Blocking cross-origin prefetches
5556### Prerendering (Chromium only)
57-58- Creating `<script type="speculationrules">` elements
59- Different eagerness levels (immediate, eager, moderate, conservative)
60- Fallback to link prefetch on non-Chromium browsers
···13## Running Tests
1415The tests will automatically:
0161. Build the prefetch.js bundle (via `cargo xtask build-maudit-js`)
172. Start the Maudit dev server on the test fixture site
183. Run the tests
···46## Features Tested
4748### Basic Prefetch
049- Creating link elements with `rel="prefetch"`
50- Preventing duplicate prefetches
51- Skipping current page prefetch
52- Blocking cross-origin prefetches
5354### Prerendering (Chromium only)
055- Creating `<script type="speculationrules">` elements
56- Different eagerness levels (immediate, eager, moderate, conservative)
57- Fallback to link prefetch on non-Chromium browsers
···214215```markdown
216---
217-title: { { enhance title="Super Title" / } }
218---
219220Here's an image with a caption:
···214215```markdown
216---
217+title: {{ enhance title="Super Title" /}}
218---
219220Here's an image with a caption:
+1-1
website/content/docs/prefetching.md
···4950Note that prerendering, unlike prefetching, may require rethinking how the JavaScript on your pages works, as it'll run JavaScript from pages that the user hasn't visited yet. For example, this might result in analytics reporting incorrect page views.
5152-## Possible risks
5354Prefetching pages in static websites is typically always safe. In more traditional apps, an issue can arise if your pages cause side effects to happen on the server. For instance, if you were to prefetch `/logout`, your user might get disconnected on hover, or worse as soon as the log out link appear in the viewport. In modern times, it is typically not recommended to have links cause such side effects anyway, reducing the risk of this happening.
55
···4950Note that prerendering, unlike prefetching, may require rethinking how the JavaScript on your pages works, as it'll run JavaScript from pages that the user hasn't visited yet. For example, this might result in analytics reporting incorrect page views.
5152+## Possible risks
5354Prefetching pages in static websites is typically always safe. In more traditional apps, an issue can arise if your pages cause side effects to happen on the server. For instance, if you were to prefetch `/logout`, your user might get disconnected on hover, or worse as soon as the log out link appear in the viewport. In modern times, it is typically not recommended to have links cause such side effects anyway, reducing the risk of this happening.
55
+1-1
website/content/news/2026-in-the-cursed-lands.md
···7071### Shortcodes
7273-Embedding a YouTube video typically means copying a long, ugly iframe tag and configuring several attributes to ensure proper rendering. It'd be nice to have something friendlier, a code that would be short, if you will.
7475```md
76Here's my cool video:
···7071### Shortcodes
7273+Embedding a YouTube video typically means copying a long, ugly iframe tag and configuring several attributes to ensure proper rendering. It'd be nice to have something friendlier, a code that would be short, you will.
7475```md
76Here's my cool video: