Fix/issue 3885 next image#3902
Open
pradeep0153 wants to merge 22 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3885.
Description
This PR drastically improves the application's visual loading performance by migrating standard HTML image elements over to the heavily optimized Next.js
<Image>component.Changes Made
app/andcomponents/directories for hardcoded HTML<img>tags.next/image, correctly configuring thesrc,alt,width, andheightproperties to prevent cumulative layout shifts (CLS).Impact
<img>tags force the browser to download full-resolution images upfront, which severely hurts the Largest Contentful Paint (LCP) metric. By leveraging the<Image>component, images are now automatically resized for the user's specific device, served in modern next-gen formats like WebP or AVIF, and lazily loaded as they scroll into the viewport, saving significant bandwidth and drastically speeding up initial page loads.