Why is prefetching disabled on hover in the App Router? #75738
-
In the Pages Router, prefetching used to happen on hover.
However, this feature has been removed in the App Router. In our application, we are considering extending the Link component to call prefetch() on the MouseEnter event. But since this feature existed in the Pages Router but is missing in the App Router, Was it removed because excessive prefetching could put too much load on the server, Could you explain the reasoning behind this change? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
People didn't like it, and pushed over and over, for a total disable of prefetch, even on hover. Here is the PR where these semantics where introduced: #48383 |
Beta Was this translation helpful? Give feedback.
-
I am building a no-code directory builder and prefetching everything and everywhere is a huge performance & costs hit for me. I decided to disable built-in prefetching altogether, yet I replaced it with prefetching on mousedown/touchstart events to achieve, at least, minor improvements.
|
Beta Was this translation helpful? Give feedback.
People didn't like it, and pushed over and over, for a total disable of prefetch, even on hover.
#24437
Here is the PR where these semantics where introduced: #48383