Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Enhancement: Replace <img> tags with Next.js Image Component #824

Open
aialok opened this issue Jul 25, 2024 · 4 comments
Open

✨ Enhancement: Replace <img> tags with Next.js Image Component #824

aialok opened this issue Jul 25, 2024 · 4 comments
Assignees
Labels
✨ Enhancement Indicates that the issue suggests an improvement or new feature. Status: In Progress This issue is being worked on, and has someone assigned.

Comments

@aialok
Copy link
Collaborator

aialok commented Jul 25, 2024

Description:
Our website currently uses standard HTML tags in over 50 places, which lack built-in optimizations and can lead to performance issues. To address this, we should replace all instances of with the Next.js Image Component next/image.

Warning: Using <img> could result in slower Largest Contentful Paint (LCP) and higher bandwidth usage. Consider using <Image /> from 'next/image' to automatically optimize images. Please note that this may incur additional usage or cost from your provider.

Screenshot from 2024-07-25 17-29-42

Note: Currently in the ESLint config file, we have turned off the '@next/next/no-img-element': 'off' rule. Once we are done with the setup of the Image Component, please change the rule to 'error' so that we can easily catch this in the future.

After

 `'@next/next/no-img-element': 'error'` 

image

@aialok aialok added the ✨ Enhancement Indicates that the issue suggests an improvement or new feature. label Jul 25, 2024
@github-actions github-actions bot added the Status: Triage This is the initial status for an issue that requires triage. label Jul 25, 2024
@irfan-iiitr
Copy link

@aialok I would like to work on this. Please assign it to me.

@aialok
Copy link
Collaborator Author

aialok commented Aug 3, 2024

@aialok I would like to work on this. Please assign it to me.

@benjagm will assign you this issue but you can work on this issue.

Thank you : )

@29deepanshutyagi
Copy link

Hi , i would like to work on this issue,if this issue is open @aialok

@benjagm
Copy link
Collaborator

benjagm commented Sep 9, 2024

Thanks a lot @29deepanshutyagi ! Please go ahead!

@benjagm benjagm added Status: In Progress This issue is being worked on, and has someone assigned. and removed Status: Triage This is the initial status for an issue that requires triage. labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Indicates that the issue suggests an improvement or new feature. Status: In Progress This issue is being worked on, and has someone assigned.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants