Loading video...
Video Failed to Load
"How can I reduce prefetching (to optimize hosting bill) without sacrificing navigation speed too much in Next?" Try prefetching on hover
102,126 views • 11 months ago •via X (Twitter)
10 Comments

Code example in the docs (scroll a bit to the code block)

for the bold, nextjs has an experimental feature - unstable_dynamicOnHover I have a link component in my apps that I import everywhere, so this was a one line change for me (dont forget to set th)e feature in your next config as well 😺

Nice! TIL

or use By predicting cursor motion, this library prefetches elements ahead of time.

Yep, this one in todos for future vids, looks very interesting

Always surprises me this isn't the default. I quite like how @tannerlinsley links work with user intent

Oh that’s nice

oh, never thought about it, damn I love it man! gonna swtich my links to hoverOnPrefetch

nice one

Should be the default behaviour tbh
