Загрузка видео...

Не удалось загрузить видео

На главную

"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

Фото профиля Alex Sidorenko
Alex Sidorenko1 год назад

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

Фото профиля Brad Larson
Brad Larson1 год назад

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
Alex Sidorenko1 год назад

Nice! TIL

Фото профиля 3IMAD
3IMAD1 год назад

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

Фото профиля Alex Sidorenko
Alex Sidorenko1 год назад

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

Фото профиля Tom Watkins
Tom Watkins1 год назад

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

Фото профиля Adam M
Adam M1 год назад

Oh that’s nice

Фото профиля Muperdev
Muperdev1 год назад

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

Фото профиля Yosuva Rajendran
Yosuva Rajendran1 год назад

nice one

Фото профиля D.E
D.E1 год назад

Should be the default behaviour tbh

Похожие видео

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,228,170 просмотров • 6 дней назад