Speed up your Website with Next.js Dynamic Import Lazy Loading

  Рет қаралды 25,195

Tenacity

Tenacity

Күн бұрын

Пікірлер
@Pk_0807
@Pk_0807 5 ай бұрын
That was an clear explanation.. haven't heard this kind of explantion from the other videos. Thanks man
@eminvesting
@eminvesting Жыл бұрын
Been procrastinating dynamic imports for a while, thanks for the explainer ^^ Keep up the good work, looking forward to your channel growing
@tenacity_dev
@tenacity_dev Жыл бұрын
Thank you! It means a lot!
@danser_theplayer01
@danser_theplayer01 Ай бұрын
I understand that the video is about next.js but literally the import() function is representing the whole concept of a dynamic import, and it works with any javascript. Just want people to know that they can do it in vanilla with basically no hand rolling required, you simply make a short function just like making a component. Put up a lodaing screen, await loading, done. In one of my projects I'm funneling a lot of modules through a file and importing them as one mean variable. I have 2 folders with similar code and I want only one depending on the environment. So I have an IFEE to load one folder or the other. It's a use case not for fast upfront loading but for conditional loading to remove redundancy.
@Ziggy0120
@Ziggy0120 Жыл бұрын
This was a really good explanation. Thanks!
@Furki4_4
@Furki4_4 Жыл бұрын
Well explained, thank you so much !
@ОлегБаранчиков-ф5у
@ОлегБаранчиков-ф5у 4 ай бұрын
Good explanation
@JeromeChung
@JeromeChung Жыл бұрын
thanks,it's really good explanation.
@Its-InderjeetSinghGill
@Its-InderjeetSinghGill 11 ай бұрын
Well explained. Keep doing the great work ❤
@mr.random8447
@mr.random8447 Жыл бұрын
Trade off is extra network call
@klapaucius515
@klapaucius515 Жыл бұрын
This may help, thank you. Can you make a video on how to find out what is causing your FCP to be slow?
@tenacity_dev
@tenacity_dev Жыл бұрын
I hope you find it useful! I'll keep that in mind for future videos.
@prabhurao2773
@prabhurao2773 6 ай бұрын
Your async await calls move to server components and start using suspense your FCP will be improved drastically
@york2301
@york2301 Жыл бұрын
How to use next/dynamic without this button, for example do delay load of certain component on first page load?
@tenacity_dev
@tenacity_dev Жыл бұрын
You can add the component directly without any conditionals. If you want to load the component only when it's visible then you can Intersection Observer.
@york2301
@york2301 Жыл бұрын
@@tenacity_dev is this kinda same like frame-motion? I have opacity:0 when component is not in view, when it is opacity is set to 1?
@york2301
@york2301 Жыл бұрын
Great job!
@tenacity_dev
@tenacity_dev Жыл бұрын
Thank you! Cheers!
@masterv2.045
@masterv2.045 11 ай бұрын
you rock dude
@techaddictdude
@techaddictdude 3 ай бұрын
How on earth are you using useState in the server component?
@tenacity_dev
@tenacity_dev 3 ай бұрын
Good question, this was before the new Next.js updates where if you want to use state or something similar you had to write "use client" at the top of the component.
@code_zeal6278
@code_zeal6278 Жыл бұрын
thank you!
@tenacity_dev
@tenacity_dev Жыл бұрын
No problem, glad you found it useful!
@TheWoselWosel
@TheWoselWosel 8 ай бұрын
Thanks, man! This saved my ass :)
@z1982_
@z1982_ Жыл бұрын
Thanks! But why is it 19kb and not 4.6kb ? :p
@tenacity_dev
@tenacity_dev Жыл бұрын
Because the `import dynamic from 'next/dynamic'` has it's own JS size.
@kairo2891
@kairo2891 Жыл бұрын
*Promo SM* ✅
@janduna4100
@janduna4100 Ай бұрын
Get to the point, you repeat one thing 50 times...
@tenacity_dev
@tenacity_dev Ай бұрын
It makes sense to repeat important things so they stick with you, I'll keep this in mind for future videos!
Next.js Performance Optimization: Implementing Lazy Loading
25:17
tapaScript by Tapas Adhikary
Рет қаралды 3,7 М.
Next.js Conf 2024 Opening Keynote
44:38
Vercel
Рет қаралды 15 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 11 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,2 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 31 МЛН
How To Load Images Like A Pro
15:48
Web Dev Simplified
Рет қаралды 384 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 321 М.
You are loading Images wrong! Use this instead 😍
14:41
CoderOne
Рет қаралды 220 М.
Using Images in Next.js (next/image examples)
9:10
leerob
Рет қаралды 116 М.
Loading Your React Data Like This is Awesome
13:27
Josh tried coding
Рет қаралды 113 М.
The favorite way to create forms in Next.js
11:27
Web Dev Cody
Рет қаралды 30 М.
How to Improve Performance in React with Code Splitting
9:55
PedroTech
Рет қаралды 211 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 11 МЛН