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

Performance and Loading Speed Enhancements for the Website 🏎 #652

Merged

Conversation

sanjaiyan-dev
Copy link
Contributor

Hi, this PR introduces a small improvement to the website.

  1. By wrapping a function in useCallback, you gain the advantage of optimizing performance and reducing unnecessary re-renders in your React components.

  2. Adding the decoding="async" HTML attribute to the image tag provides the benefit of improving the page's loading speed by allowing the browser to start decoding the image as soon as possible without blocking other page rendering tasks.

@pelikhan
Copy link
Member

Looks great thanks!

@pelikhan pelikhan merged commit 0a8f965 into microsoft:main Oct 27, 2023
2 checks passed
@sanjaiyan-dev sanjaiyan-dev deleted the sanjaiyan-website-image-optimize branch October 28, 2023 01:18
@sanjaiyan-dev
Copy link
Contributor Author

Looks great thanks!

My Pleasure 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants