Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First load of a product page takes 7 sec #209

Open
aidensgithub opened this issue Nov 26, 2023 · 2 comments
Open

First load of a product page takes 7 sec #209

aidensgithub opened this issue Nov 26, 2023 · 2 comments

Comments

@aidensgithub
Copy link

aidensgithub commented Nov 26, 2023

I appreciate the contributors behind these amazing projects!
I seem to have a weird issue, would be glad if someone could guide me on the debugging.
Apparently the first product page takes too long, I assume the database fetch. Let's put away the database problems first, I would appreciate any guides on making so that clicking on a product, at least loads the page first and loads whatever it needs later. Because when I click the first time, ther is no any visual feedback at least for 4 seconds. I might be wrong but I believe, most of the pages aren't well structured for initial server-side loading.

Open to your ideas.

For reference: The average ping with 32B to the database server from my localhost takes 90-100ms

Here is the networks tab

image

Desired behaviour is to meet these web vitals

@aidensgithub
Copy link
Author

Some more stats

Here is the performance insight

image

Initial page loading request (light blue) states 14 seconds of wating

image

@mgomez-tubs
Copy link

The delay between pages is a nextjs development mode issue and you are testing metrics in development anyways so that doesn't really mean much. That being said, I have pushed this template to a production env for testing and the issue seems to be the largest contentful paint metric, which is bringing the PageSpeed performance score to 30, because of an LCS of 3.6s. I'm sure something can be done about it, but the current state of this template definitely needs improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants