Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename "InstantClick" section #175

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

seanpdoyle
Copy link
Contributor

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.

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
@seanpdoyle
Copy link
Contributor Author

@afcapel @davidalejandroaguilar is "Prefetching Links on Hover" a suitable new name for this section?

@davidalejandroaguilar
Copy link

@seanpdoyle Hadn't realized we might not want users to think we're affiliated in some way.

This makes sense and looks good to me. "Hover" might not be what's always happening (e.g. when we add touchstart handling), but it conveys the idea well.

Let's see what @afcapel thinks.

@MatheusRich
Copy link
Contributor

MatheusRich commented Feb 29, 2024

Is "Prefetching Links" enough?

@@ -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 `<turbo-stream>` elements in the response body. This lets you update multiple parts of the page without navigating.

## InstantClick
## Prefetching Links on Hover
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Prefetching Links on Hover
## Prefetching Links

@afcapel
Copy link
Contributor

afcapel commented Mar 1, 2024

Makes sense, thanks @seanpdoyle!

@afcapel afcapel merged commit 692c6ff into hotwired:main Mar 1, 2024
@seanpdoyle seanpdoyle deleted the rename-instantclick-section branch March 1, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants