Optimizing Initial Server Response and Unused JavaScript
Optimizing Initial Server Response and Unused JavaScript
At a glance
The community member is working on a website and has received feedback from PageSpeed Insights indicating issues with initial server response and unused JavaScript. The community members discuss potential solutions, such as lazy loading content, reducing the amount of resources loaded, and implementing caching strategies. They also suggest checking for unused resources and testing the backend performance. While there is no explicitly marked answer, the community members provide several recommendations and suggestions to optimize the website's performance.
Though keep in mind even with caching first request will show bad metrics unless you request each page manually before crawler. So fast backend is the best option.
"what if" is not a great way to think about it, usually the goal is load the minimum amount of data when you server-render, then load more when necessary
depending on the use case there are different answers, but without having a use case there is no point talking about a different solution
when checking performance you can also make the same request using any 3rd party tool and see how fast the data gets fetched as as baseline for what to expect