Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const fullTitle = title ? `${title} | Boxi Yu` : 'Boxi Yu | Software Testing & T
<meta name="description" content={description} />
{(noindex || previewDrafts) && <meta name="robots" content="noindex, nofollow" />}
<link rel="canonical" href={canonical} />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/assets/img/parrot.png" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Serve a favicon-sized parrot image

On a visitor's first page load, this makes the browser fetch the full 614×614, 538,671-byte assets/img/parrot.png merely to render a roughly 16–32 px favicon, replacing the 333-byte SVG and adding about 526 KiB to every cold-cache visit. Preserve the parrot design, but point this tag to a separately resized and optimized favicon asset.

Useful? React with 👍 / 👎.

<link rel="alternate" type="application/rss+xml" title="Boxi Yu's writing" href="/feed.xml" />
<meta property="og:type" content={article ? 'article' : 'website'} />
<meta property="og:title" content={fullTitle} />
Expand Down
Loading