increase LCP performance with t3 stack.

Hello Folks, I am building and app and have noticed very poor scores on lighthouse performance. Any ideas on how I can improve the performance? The route in question is a dashboard. theres quite a bit of fetching and rendering on that page since it's a dashboard. I import a AdminClub Component which hold the admin dashboard, which runs 4 queries to get chart_data, user_data, numbers, and meetings inside the component. Should I combine these into 1 large query? I'm new to next so sorry if these are stupid questions.
1 Reply
JulieCezar
JulieCezar2y ago
Depending on how you fetch your data there are some options on how to optimize... You could immediately display a loading component while you fetch things which should decrease your blocking time. You could also fetch everything together like you said. Can't say more without knowing how you are doing things.
Want results from more Discord servers?
Add your server