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

enhance(homepage): optimize + lazy-load contributor logo #11258

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jun 5, 2024

Summary

Problem

The contributor logo on the homepage is larger than it could be, and this is pointed out by Google PageSpeed Insights.

Solution

Optimize it with pngquant, effectively reducing its size by 19% from 38 to 31 kB.

Note: Also imports it (allowing a longer cache duration), fixes the declared width, and enables lazy-loading.


Screenshots

No change, see image diff in "Files changed" tab.


How did you test this change?

Ran yarn dev locally.

@caugner caugner requested a review from a team as a code owner June 5, 2024 16:36
@caugner caugner changed the title chore(homepage): optimize contributor logo fix(homepage): optimize contributor logo Jun 5, 2024
@caugner caugner changed the title fix(homepage): optimize contributor logo chore(homepage): optimize contributor logo Jun 5, 2024
@caugner caugner changed the title chore(homepage): optimize contributor logo enhance(homepage): optimize + lazy-load contributor logo Jun 6, 2024
Copy link
Contributor Author

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed together in an internal meeting with @fiji-flo and @argl.

@caugner caugner merged commit 43bde1c into main Jun 7, 2024
15 checks passed
@caugner caugner deleted the optimize-mdn-contributor-logo branch June 7, 2024 21:34
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.

1 participant