#Components is taking so much time to load

1 messages · Page 1 of 1 (latest)

dense orchid
#

Hello, In my Next.Js 15.2.4 app router application, some of the components is taking so much time to load, but that lags happens only after like 4 days of a restart, so when i stop the app and run the server again it's fast

sour tulipBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dense orchid
#

Website is at https://lutex.io for anyone who wants to look more

#

The Landing page is also taking so much time to load as well

mortal frost
#

@dense orchid Your home page is 5mb ?

dense orchid
mortal frost
#

also animations can make it look "loading slow" especially at slow pc s

dense orchid
#

Which browser are you using?

mortal frost
#

firefox

dense orchid
#

That's weird

#

what could be the reasons of that huge size?

#

also in brave it's showing me that the size is 51.6kb, why did it take 5mb to load?

#
  • when i do a restart to the server it's loading fast as it should
mortal frost
#

can i see your build logs @dense orchid

dense orchid
mortal frost
#

vercel

dense orchid
#

I don't use vercel

mortal frost
#

only last block

#

which says static ...

dense orchid
#

1s

#

@mortal frost

mortal frost
#

looks okay, maybe your host is slow

#

also 1s is okay for a page which have heavy animation

#

like threejs

dense orchid
dense orchid
mortal frost
dense orchid
#

But also 5mb to load landing page? that's alot

mortal frost
dense orchid
#

and will be a problem for those who have a slow internet like me

mortal frost
#

or pagespeed insights

#

if you have a thing faster than 3g its okay to have 1sec load times

mortal frost
#

my near empty page takes 500ms

dense orchid
mortal frost
#

37 requests
1.1 MB transferred
3.6 MB resources
Finish: 780 ms

dense orchid
mortal frost
#

yep but fast load is not same with fast rende

#

its rendering slow

#

that is what i mean

dense orchid
mortal frost
#

for that i need to see the code

dense orchid
#

Can i dm?

#

Your local LCP value of 15.75 s is poor.
LCP element
img.w-full.h-full.object-cover

#

It's saying that it is because of the image under that text

mortal frost
#

yep @dense orchid

dense orchid
mortal frost
dense orchid
# mortal frost okay let me know the result

I've completely removed the image and now it's telling me

Your local LCP value of 12.59 s is poor.
LCP element
p.max-w-2xl.mx-auto.text-description-color.text-sm.lg:text-xl

Which is the description, That is just so weird

dense orchid
#

i removed framer-motion and it reduced to 3.12s

#

@mortal frost Can you tell me what does it shows for you?

mortal frost
#

Also you can send me lighthouse reports and google pagespeed insights

mortal frost
#

its 1.94 s LCP on mine, but this depends on hardware and network so its not a descriptive metric to measure performance

#

For me its 660ms on network tab, but your / is still large and takes most of time of 660

#

only 400ms is "waiting server response"

#

If you are not performance optimistic this values are so good, if you want more fine tuning we need to see whole codebase and hosting options

dense orchid
#

@mortal frost

#

only the landing page is what taking that long, other pages is fast as they should

#

Idk if it's framer-motion or not

mortal frost
dense orchid
mortal frost
#

Not framer i mean

dense orchid
#

hmm, So what's the issue

mortal frost
#

Is it slow when you build it locally

dense orchid
#

Hmm, a little bit, because i have some obfuscated code

#

but i don't use that in the landing page

mortal frost
#

Well i need to see that code

dense orchid
#

The langing page?

mortal frost
#

Codebase actually

dense orchid
#

uhhhm

#

I can share screen to it once i get home

mortal frost
#

Vscode live share link would be better

dense orchid
#

Can't give you access to the whole project sorry

mortal frost
#

Then just send me some files

#

next.config, package.json, rootlayout component and landing page

#

Also local build logs at terminal

#

Only after generating static pages block

#

Otherwise i cant get what is wrong