Skip to content

Replacing favicon PNG with SVG for favicon and footer image#468

Merged
angelazhou32 merged 2 commits into
mainfrom
replace-favicon-with-svg
May 27, 2026
Merged

Replacing favicon PNG with SVG for favicon and footer image#468
angelazhou32 merged 2 commits into
mainfrom
replace-favicon-with-svg

Conversation

@mattpyle

Copy link
Copy Markdown
Contributor

What was changed

Added an SVG version of the favicon. Replaced the favicon in the head with the SVG version and retained png as a fallback.

Replaced footer image to reference the SVG.

Why?

The favicon.png is in the footer of every page. The image is 520x520 but displayed as 24x24. The size was unnecessarily large and flagged by Google Lighthouse as an easy global fix.
This replaces the 184kb PNG for a 4kb SVG and maintains user experience for the favicon and footer icon.

Checklist

  1. How was this tested:
    Built the site locally. On /courses, the lighthouse performance score improved from 57 - 67. Favicon renders correctly in Chrome. Image in the footer shows, still links to the right site, and looks the same.

  2. Any docs updates needed?
    No

mattpyle and others added 2 commits May 26, 2026 19:49
The previous commit set the SVG via the `favicon` config but then appended
a PNG `<link rel="icon">` via headTags. Because headTags are rendered
after the auto-generated favicon link, browsers picked the PNG as the
active icon. Swap the order so the PNG is the untyped fallback and the
SVG is declared with `type="image/svg+xml"` — modern browsers will
prefer the SVG, older browsers fall back to the PNG.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mattpyle mattpyle requested a review from a team as a code owner May 27, 2026 03:24
@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: temporal-learning.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@CLAassistant

CLAassistant commented May 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@angelazhou32

Copy link
Copy Markdown
Contributor

LGTM - thanks!

@angelazhou32 angelazhou32 merged commit 6ac956e into main May 27, 2026
3 of 4 checks passed
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.

3 participants