Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

"How can I reduce prefetching (to optimize hosting bill) without sacrificing navigation speed too much in Next?" Try prefetching on hover

102,126 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

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

Brad Larson profil fotoğrafı
Brad Larson1 yıl önce

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 😺

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

Nice! TIL

3IMAD profil fotoğrafı
3IMAD1 yıl önce

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

Alex Sidorenko profil fotoğrafı
Alex Sidorenko1 yıl önce

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

Tom Watkins profil fotoğrafı
Tom Watkins1 yıl önce

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

Adam M profil fotoğrafı
Adam M1 yıl önce

Oh that’s nice

Muperdev profil fotoğrafı
Muperdev1 yıl önce

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

Yosuva Rajendran profil fotoğrafı
Yosuva Rajendran1 yıl önce

nice one

D.E profil fotoğrafı
D.E1 yıl önce

Should be the default behaviour tbh

Benzer Videolar

Mbappe does not have the IQ to play football “very” effectively without his speed. Calm, and don’t drag me yet. Do you know why Messi is still effective at his age despite being slower? It’s because he has learned how to play football without having to run too much. At some point, Mbappe’s speed will reduce, but he doesn’t have that much IQ to survive so much without it. On dead ball situations where he doesn’t have to run, just watch, he’s less effective. He can’t drop a mad line-breaking pass, he can’t wiggle around players. I mean, anything that doesn’t involve his speed, he’s less effective. Of course he’s done a lot without his speed, but he’s less potent, I hope you don’t misunderstand this part. Mbappe is deadliest on transition. Same with Barcola and Dembele. If a team is in shape, these guys are not effective, e.g Paraguay…you can also see the France team, they don’t intend to keep the ball, their only plan is to wait for you to lose it and they play it to those 4 guys, you are finished. Please listen to Thierry Henry. He said he was so quick and relied on his speed, a coach had to tell him at some point to play without his speed. This made him think more and play more with his brain. As Mbappe grows, his speed will slow down, he still has more than 10 years to play, and I hope he can learn that part where he can be effective without speed. Cristiano scored more after 30 years old when his speed had reduced. I hope you guys get my point, I know many will still misunderstand it.

TobyWrites

1,224,103 görüntüleme • 3 gün önce