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

[Bug]: mouse hover generates too much traffic #6711

Open
allevo opened this issue Mar 25, 2024 · 3 comments
Open

[Bug]: mouse hover generates too much traffic #6711

allevo opened this issue Mar 25, 2024 · 3 comments
Assignees

Comments

@allevo
Copy link

allevo commented Mar 25, 2024

Summary

When the mouse hovers on something, a download is performed. The cache is not used at all (max-age=0 with must-revalidate). This increase the network usage a lot.

Page

https://react.dev/

Details

Screen.Recording.2024-03-25.at.19.02.04-1.mov
@BartoszKlonowski
Copy link
Collaborator

BartoszKlonowski commented Aug 13, 2024

Hello @allevo!
I can no longer reproduce this issue (Mozilla's Firefox). Can you check on your side or specify which browser you see this on (if)?
Scratch that, I see this happening when running the docs on the site, not locally.

@allevo
Copy link
Author

allevo commented Aug 13, 2024

I can reproduce it with Chrome, Safari, and Arc browser.

@BartoszKlonowski
Copy link
Collaborator

Exactly, this will be reproducible with any browser, as this seems to be default behavior of Next.js and the prefetching behavior that can't be simply disabled for hover: https://nextjs.org/docs/pages/api-reference/components/link#prefetch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants