Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants