From 8fd6927ee0f9287f780e2843fdebfdc017e6e232 Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Sat, 24 Feb 2024 09:06:41 -0800 Subject: [PATCH] Rename "InstantClick" section Turbo's link prefetching implementation is in no way affiliated with the pre-existing [InstantClick][] package. Turbo doesn't have a client-side dependency on the [instantclick package][], nor does it share any code with the [dieulot/instantclick][] repository. With this in mind, this commit removes all mentions of "InstantClick" from the site and renames the heading to "Prefetching Links on Hover". While editing that section, this commit also removes mention of handling `touchstart` events, since those events are not accounted for in the current implementation. [InstantClick]: http://instantclick.io [instantclick package]: https://www.npmjs.com/package/instantclick [dieulot/instantclick]: https://github.com/dieulot/instantclick --- _source/handbook/02_drive.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_source/handbook/02_drive.md b/_source/handbook/02_drive.md index 5d3f840..6fb5c1d 100644 --- a/_source/handbook/02_drive.md +++ b/_source/handbook/02_drive.md @@ -328,11 +328,11 @@ If the form submission is a GET request, you may render the directly rendered re Servers may also respond to form submissions with a [Turbo Streams](streams) message by sending the header `Content-Type: text/vnd.turbo-stream.html` followed by one or more `` elements in the response body. This lets you update multiple parts of the page without navigating. -## InstantClick +## Prefetching Links on Hover -Turbo can also speed up perceived link navigation latency by automatically loading links on `mouseenter` or `touchstart` events, and before the user clicks the link. This usually leads to a speed bump of 500-800ms per click navigation. +Turbo can also speed up perceived link navigation latency by automatically loading links on `mouseenter` events, and before the user clicks the link. This usually leads to a speed bump of 500-800ms per click navigation. -InstantClick is enabled by default since Turbo v8, but you can disable it by adding this meta tag to your page: +Prefetching links is enabled by default since Turbo v8, but you can disable it by adding this meta tag to your page: ```html