···1313## Running Tests
14141515The tests will automatically:
1616-17161. Build the prefetch.js bundle (via `cargo xtask build-maudit-js`)
18172. Start the Maudit dev server on the test fixture site
19183. Run the tests
···4746## Features Tested
48474948### Basic Prefetch
5050-5149- Creating link elements with `rel="prefetch"`
5250- Preventing duplicate prefetches
5351- Skipping current page prefetch
5452- Blocking cross-origin prefetches
55535654### Prerendering (Chromium only)
5757-5855- Creating `<script type="speculationrules">` elements
5956- Different eagerness levels (immediate, eager, moderate, conservative)
6057- Fallback to link prefetch on non-Chromium browsers
···214214215215```markdown
216216---
217217-title: { { enhance title="Super Title" / } }
217217+title: {{ enhance title="Super Title" /}}
218218---
219219220220Here's an image with a caption:
+1-1
website/content/docs/prefetching.md
···49495050Note 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.
51515252-## Possible risks
5252+## Possible risks
53535454Prefetching 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.
5555
+1-1
website/content/news/2026-in-the-cursed-lands.md
···70707171### Shortcodes
72727373-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.
7373+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.
74747575```md
7676Here's my cool video: