From 06ad2949f88b3e41ffd01d85e457cad6f94abd43 Mon Sep 17 00:00:00 2001 From: David Colby Date: Sun, 24 Mar 2024 17:27:02 -0700 Subject: [PATCH 1/2] Document data-turbo-prefetch in attributes reference --- _source/reference/attributes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_source/reference/attributes.md b/_source/reference/attributes.md index f2fe211..985cc1c 100644 --- a/_source/reference/attributes.md +++ b/_source/reference/attributes.md @@ -15,6 +15,7 @@ The following data attributes can be applied to elements to customize Turbo's be * `data-turbo-track="reload"` tracks the element's HTML and performs a full page reload when it changes. Typically used to [keep `script` and CSS `link` elements up-to-date](/handbook/drive#reloading-when-assets-change). * `data-turbo-frame` identifies the Turbo Frame to navigate. Refer to the [Frames documentation](/reference/frames) for further details. * `data-turbo-preload` signals to [Drive](/handbook/drive#preload-links-into-the-cache) to pre-fetch the next page's content +* `data-turbo-prefetch="false"` [disables prefetching links](/handbook/drive#prefetching-links-on-hover) when the element is hovered. * `data-turbo-action` customizes the [Visit](/handbook/drive#page-navigation-basics) action. Valid values are `replace` or `advance`. Can also be used with Turbo Frames to [promote frame navigations to page visits](/handbook/frames#promoting-a-frame-navigation-to-a-page-visit). * `data-turbo-permanent` [persists the element between page loads](/handbook/building#persisting-elements-across-page-loads). The element must have a unique `id` attribute. It also serves to exclude elements from being morphed when using [page refreshes with morphing](/handbook/page_refreshes.html) * `data-turbo-temporary` removes the element before the document is cached, preventing it from reappearing when restored. From a49602f6ec43d29419a87e73a30428a611502991 Mon Sep 17 00:00:00 2001 From: David Colby Date: Sun, 24 Mar 2024 17:30:28 -0700 Subject: [PATCH 2/2] Document turbo-prefetch meta tag in attributes reference --- _source/reference/attributes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_source/reference/attributes.md b/_source/reference/attributes.md index 985cc1c..61c96fb 100644 --- a/_source/reference/attributes.md +++ b/_source/reference/attributes.md @@ -44,3 +44,4 @@ The following `meta` elements, added to the `head`, can be used to customize cac * `` to trigger view transitions on browsers that support the [View Transition API](https://caniuse.com/view-transitions). * `` will configure [page refreshes with morphing](/handbook/page_refreshes.html). * `` will enable [scroll preservation during page refreshes](/handbook/page_refreshes.html). +* `` will disable [prefetching links on hover](/handbook/drive#prefetching-links-on-hover).