vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.2k stars 27.02k forks source link

NextJS 12.2 decreases LCP for large eCommerce site #38982

Open jantimon opened 2 years ago

jantimon commented 2 years ago

Provide environment information

Live Website ~9 million page visits this month

Describe the Bug

We have just started to investigate but on first glimpse our measurements suggest that it's very likely that NextJS 12.2 is slowing down our LCP significantly from good to needs improvement

lcp

If you have any interest in investigating this case together with us (be it free or paid) just let us know :)

Expected Behavior

Same LCP for 12.2 and 12.1

Link to reproduction

https://www.galaxus.ch/en/

To Reproduce

I don't know how you might reproduce the issue - but if you like we could investigate our live system together

willemliufdmg commented 2 years ago

Could be related to:

jantimon commented 2 years ago

thanks @willemliufdmg however we are using neither middleware.ts nor etags - so it seems to be a different issue

11koukou commented 2 years ago

Hello, I am constantly checking my site's web vitals after every release and I can't confirm any LCP decrease, especially significant. Make sure that you are preloading your LCP in case it is an image and that you are using lighthouse/pagespeed for getting useful suggestions about your code