This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Preload primary fonts and advertise the changelog feed - #185
Merged
Merged
Conversation
- The Neue Montreal woff2 files were only discovered after the stylesheet downloaded and parsed, so first paint flashed the fallback font. The Regular and Medium weights (body text and headings) are now preloaded from every page head via the component every page already includes; the hashed URLs come from the same Vite asset imports the CSS uses, so the preload warms the exact resource the fonts load from. - Product-updates pages now advertise the Hive Changelog RSS feed (/feed.xml) via a rel=alternate link, like the blog does for its feed, so feed readers can autodiscover it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Urigo
temporarily deployed
to
storybook-preview
September 2, 2026 18:58 — with
GitHub Actions
Inactive
|
dotansimha
reviewed
Sep 2, 2026
| @@ -76,6 +78,8 @@ const breadcrumbJsonLd = JSON.stringify({ | |||
| }); | |||
| --- | |||
|
|
|||
| {/* Rendered here because every page head includes this component. */} | |||
Member
There was a problem hiding this comment.
While this makes sense to put here, this component should maybe have a different name and not SocialMetadata.
(not a blocker for this PR)
dotansimha
approved these changes
Sep 2, 2026
Per review: the component long outgrew its name — it renders the description, canonical, social/OpenGraph tags, BreadcrumbList structured data, feed and llms.txt discovery, font preloads, and the title. BaseHead is the conventional Astro name for the shared head component. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Renamed in the latest commit — |
dotansimha
approved these changes
Sep 2, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The last two refinements from the round-4 production review:
Font preloading — the Neue Montreal woff2 files were only discovered after the stylesheet downloaded and parsed, so first visits flash the fallback font before the swap. The Regular and Medium weights (body + headings) are now
<link rel="preload" as="font">-ed from every page head, via aFontPreloadscomponent rendered bySocialMetadata(the one component every page already includes). The URLs come from the same Vite asset imports the CSS resolves, so the preloaded hash exactly matches what@font-facerequests — verified in the built output (same hashed filename in CSSurl()and the preload) — and the base path applies automatically. SemiBold is left to load on demand.Changelog feed autodiscovery — the blog advertises its RSS feed via
rel="alternate", but product-updates pages never referenced/feed.xml(the Hive Changelog feed), so feed readers couldn't autodiscover it. Both the product-updates index and detail pages now carry the link.Verification
Prefixed build passes the base-path verifier with correctly prefixed preload URLs; plain preview build emits un-prefixed ones; font hashes match between CSS and preloads (no double-download); typecheck green.
🤖 Generated with Claude Code