Closed gauravsaini964 closed 1 year ago
Any update or ETA on this? Sitting on website that needs to go live.
Thanks for your efforts.
This is an issue in React.
I notified @gnoff who is going to fix it upstream.
Hey @gnoff. Any issue, PR or ETA to track?
Thank you for your contributions.
Hi Please share if you have any update. Sorry for rushing. One of the last few bugs pending for our new website rollout.
No issue just yet but I think a general timeline of 2 weeks is reasonable. I'll try to update this issue with a link tracking the work once I get it started
Please check #53574. If it is related or not.
Hey @gnoff Any progress on this? Thanks
I believe this is the upstream React PR:
Do we expect that this issue has been fixed since the upstream react fixes were included in 13.4.15
via https://github.com/vercel/next.js/pull/53881 ?
Confirmed this is fixed 👍
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Image optimization (next/image, next/legacy/image)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/gauravsaini964/image-preload-next13
To Reproduce
Describe the Bug
Order of image preload tag in app-dir is different from what it used to be in pages-dir and hence FP and LCP metric is getting affected. Same is replicated in lighthouse scores. Compare following screenshots:
Expected Behavior
Image preload tag should come above every other preload tag imo as it is giving me best performance.
I have a ecommerce app which has 1800+ pages built with both app-router and page-router. App router app is faster in every aspect apart from FP and LCP metric consistently by ~1seconds because that website has lot more scripts to preload.
Which browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
Vercel
NEXT-1463