From d42ef29b2f3a660b8b71509a2d515a4bc93e6d6c Mon Sep 17 00:00:00 2001 From: Carson Gross Date: Tue, 7 Apr 2026 16:26:28 -0600 Subject: [PATCH] fix docs --- .../content/docs/06-extensions/06-preload.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/www/src/content/docs/06-extensions/06-preload.md b/www/src/content/docs/06-extensions/06-preload.md index 7448b89e..c50d9af2 100644 --- a/www/src/content/docs/06-extensions/06-preload.md +++ b/www/src/content/docs/06-extensions/06-preload.md @@ -17,21 +17,21 @@ The `preload` extension allows you to load HTML fragments into your browser's ca ## Usage -Add a `preload` attribute to any hyperlinks and [`hx-get`](/reference/attributes/hx-get) elements you want to preload. By default, resources will be loaded as soon as the `mousedown` event begins, giving your application a roughly 100-200ms head start on serving responses. +Add an `hx-preload` attribute to any hyperlinks and [`hx-get`](/reference/attributes/hx-get) elements you want to preload. By default, resources will be loaded as soon as the `mousedown` event begins, giving your application a roughly 100-200ms head start on serving responses. ```html -Preloaded on mousedown - +Preloaded on mousedown + ``` All preload requests include an additional `"HX-Preloaded": "true"` header. ### Inheriting Preload Settings -You can add the `preload` attribute to a parent element, and all links within it will be preloaded: +You can add the `hx-preload` attribute to a parent element, and all links within it will be preloaded: ```html -