正在加载视频...
视频加载失败
"How can I reduce prefetching (to optimize hosting bill) without sacrificing navigation speed too much in Next?" Try prefetching on hover
102,126 次观看 • 1 年前 •via X (Twitter)
10 条评论

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
相关视频
test: how much songs can i add on top of each other before it becomes too much
Davi
68,091 次观看 • 2 个月前
Sensitive content
How much can you goon to me in a cosplay that covers all the good parts… I dare you to try 👀🔎
Hunny
115,313 次观看 • 3 天前


