A subscriber said my website was slow, so I improved it

A subscriber said my website was slow, so I improved it

Web Dev Cody

1 неделя назад

11,196 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@justafreak15able
@justafreak15able - 22.10.2024 19:46

Setting up Intersection observer was an overkill though. Iframe supports lazy loading with loading="lazy" attribute. There is always a simple solution if you look for it.

Ответить
@mhl_5
@mhl_5 - 26.10.2024 12:03

hey cody great video, I have the same problem in next js, my h1 text is the LCP and im using next/font. Have you found a way to fix it? If so, please let me know!

Ответить
@creative.kuldeep
@creative.kuldeep - 25.10.2024 07:50

I think the title should be, Getting website reviewed by subscribers

Ответить
@nepalxplorer
@nepalxplorer - 24.10.2024 11:39

lol can't believe "Web Dev Cody" didn't show loading=lazy approach

Ответить
@Scapben
@Scapben - 23.10.2024 20:37

I learned two things from this video:

- Even pros can miss simple details even with 10 years of xp, we can't know everything like loading="lazy".
- If Cody hadn’t uploaded this, he might never have noticed.

Makes me wonder how much I miss by not creating content too 🤔

Ответить
@jeromedeng2372
@jeromedeng2372 - 23.10.2024 19:18

I have a question, why is there a phenomenon of high ratings on PC and low ratings on mobile

Ответить
@cod-the-creator
@cod-the-creator - 23.10.2024 16:18

There is no way you personally wrote code using "var" in 2024

Ответить
@peturgeorgievv
@peturgeorgievv - 23.10.2024 13:44

I'd even suggest having a placeholder photo and only on click to load the iframe. Guys already mentioned the lazy, so I'd say placeholder + lazy is much better alternative.

Ответить
@arjix8738
@arjix8738 - 23.10.2024 10:32

please use const/let instead of var, it is hurting me emotionally and I can't focus on the video

Ответить
@manifestasisanubari
@manifestasisanubari - 23.10.2024 10:03

I'm a noob and have a question about <meta name="viewport">` tag. Why big companies like Google itself and Facebook don't use it?

Ответить
@sunderlicious2746
@sunderlicious2746 - 23.10.2024 06:43

If you want to fix the largest content painful issue try preloading your font in the head tag. That’s what fixed it for me. Same goes for images that give you the same problem. Nice vid!

Ответить
@ziacodes
@ziacodes - 23.10.2024 06:07

your website design is bad 🙂

I'm expecting you to improve it 🤣 and make a video

Ответить
@heavenaldrico
@heavenaldrico - 23.10.2024 04:38

lighthouse checking should only be done in production

Ответить
@perc-ai
@perc-ai - 23.10.2024 00:54

I have been in the web dev cody discord and alot of those guys don't really even know that much about software mainly because they never worked at a faang company. I'm glad you guys are open to feedback

Ответить
@tryoxiss
@tryoxiss - 23.10.2024 00:14

Friendly reminder that Lighthouse/Page Speed Insights/Similar are guides, not scripture. Getting all 100s is somewhat pointless as doing so could encourage bad practices or make things worse. Defintely good to look at to see what could be improved, but of course use your on judgement too if you are optimizing a site.

Ответить
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd - 22.10.2024 22:28

Thank you so much

Ответить
@everyumclust7985
@everyumclust7985 - 22.10.2024 21:16

do you think this could have been solved in nextjs with a suspense boundary and a fallback skeleton?

Ответить
@DOOM11777
@DOOM11777 - 22.10.2024 20:46

Unlighthouse is better then lighthouse because it checks every page

Ответить
@yolla_4
@yolla_4 - 22.10.2024 20:28

Thanks to cursor for making this tutorial possible

Ответить
@notMichal
@notMichal - 22.10.2024 19:22

You blocked the guy tho, right? /s

Ответить
@piotrm98
@piotrm98 - 22.10.2024 19:16

What if i want to check my other routes instead of just landing page ? And what if they are protected for logged in users or over paywall ?

Ответить
@griffadev
@griffadev - 22.10.2024 18:58

Pretty sure iframes support loading="lazy" like images no JS required

Ответить
@nexovec
@nexovec - 22.10.2024 18:58

This oh no framework is less oh no than the other ones

Ответить
@mohammed.haydar
@mohammed.haydar - 22.10.2024 18:48

Also could you please a little bit more about enhancing NextJS apps regarding these points:
- Reduce JavaScript execution time
- Reduce initial server response time
- Largest Contentful Paint element
Because these performance metrics are measuring NextJS bundled Javascript, which most likely the developer (like me) didn't write but NextJS produced after bundling the JS chunks (e.g: the path to next static files: /_next/static/chunks/5625-c84ebb1819d4393b.js .... etc )

Ответить
@mohammed.haydar
@mohammed.haydar - 22.10.2024 18:41

Thanks for the amazing content Cody.
Is there a difference in deploying to Railway or Vercel for smaller apps, I mean performance wise?

Ответить
@ivangechev4243
@ivangechev4243 - 22.10.2024 18:15

Is there a difference if you use useRef instead of directly accessing the element using vanilla js?

Ответить
@xd9050
@xd9050 - 22.10.2024 17:52

hey cody where have you deployed your web app ? digital ocean ?

and thanks for making such amazing videos man <3

Ответить
@LuizHenrique-cu4kq
@LuizHenrique-cu4kq - 22.10.2024 17:46

Nice job on it Cody! I will enjoy if u can post more about this kind of videos. Sometimes I got stucked on performances that is too hard to solve them

Ответить
@byuinachi
@byuinachi - 22.10.2024 17:43

Hey Cody, do you have any videos on how to market a SaaS from zero?

Ответить
@nikitaliakhovka3489
@nikitaliakhovka3489 - 22.10.2024 17:34

Hey Cody, I believe that iframe also has a 'loading' attribute similar to img tag, which you can set to 'lazy' for clean 1 line solution 😉, but IntersectionObserver is cool idea too!

Ответить
@SeibertSwirl
@SeibertSwirl - 22.10.2024 17:24

Good job babe!!!! Way to listen to feedback and adjust accordingly! Forever proud of you❤

Ответить