René's URL Explorer Experiment


Title: perf: request only the font weights and styles a site uses from Google Fonts · Issue #562 · ycode/ycode · GitHub

Open Graph Title: perf: request only the font weights and styles a site uses from Google Fonts · Issue #562 · ycode/ycode

X Title: perf: request only the font weights and styles a site uses from Google Fonts · Issue #562 · ycode/ycode

Description: Summary Follow-up from #550 / #560. The inlined Google Fonts @font-face CSS requests the full variable range of each family, including axes the site never uses. On the client website the ycode-google-fonts block is 8 KB and declares Inte...

Open Graph Description: Summary Follow-up from #550 / #560. The inlined Google Fonts @font-face CSS requests the full variable range of each family, including axes the site never uses. On the client website the ycode-goog...

X Description: Summary Follow-up from #550 / #560. The inlined Google Fonts @font-face CSS requests the full variable range of each family, including axes the site never uses. On the client website the ycode-goog...

Opengraph URL: https://github.com/ycode/ycode/issues/562

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"perf: request only the font weights and styles a site uses from Google Fonts","articleBody":"## Summary\n\nFollow-up from #550 / #560. The inlined Google Fonts `@font-face` CSS requests the full variable range of each family, including axes the site never uses. On the client website the `ycode-google-fonts` block is 8 KB and declares Inter *italic* 100–900 alongside the upright range, though no layer uses italic. Each unused axis is another `@font-face` set the browser has to evaluate, and for non-variable families each becomes a separate file.\n\n## Proposal\n\n- Collect the `font-[Family]` + `font-{weight}` / `italic` classes actually used across published layers (the same scan `findLcpTextFont` in `lib/font-preload.ts` already does for the LCP heading).\n- Build the `css2` URL with only those `wght` values and drop `ital` unless an italic class is present.\n- Keep the current full-range request as the fallback when a family is only referenced through custom CSS or rich text we cannot scan.\n\n## Notes\n\n- `buildGoogleFontsUrl` in `lib/font-utils.ts` is the single place the URL is built.\n- Must not regress the preload in `getLcpFontPreloads`, which matches `@font-face` rules by family + weight.\n","author":{"url":"https://github.com/ysamcode","@type":"Person","name":"ysamcode"},"datePublished":"2026-09-17T12:22:03Z","url":"https://github.com/ycode/ycode/issues/562"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f9feefc3-b52d-fcbd-aef2-559e8f065894
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9DC4:285799:19BDDD:2184B0:6AFE377A
html-safe-nonce277833c2f6b9f29c8546a7e5955241a7a11a4eb2c32820ff418c925420fef00d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REM0OjI4NTc5OToxOUJEREQ6MjE4NEIwOjZBRkUzNzdBIiwidmlzaXRvcl9pZCI6Ijg3NTY5MDgzMTA3ODQ3ODQyNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd0d373ff3046e0ea017607c0732a04db72bd9409e46854d0493cd02b7e6e6387
hovercard-subject-tagissue:5487277942
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ycode/ycode/562/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aaaf1aa1784d0931cf87dec950c8207c4d22c561eb8d8bb123dd5253544c2124/ycode/ycode/issues/562
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aaaf1aa1784d0931cf87dec950c8207c4d22c561eb8d8bb123dd5253544c2124/ycode/ycode/issues/562
og:image:altSummary Follow-up from #550 / #560. The inlined Google Fonts @font-face CSS requests the full variable range of each family, including axes the site never uses. On the client website the ycode-goog...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameysamcode
hostnamegithub.com
expected-hostnamegithub.com
None260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e
turbo-cache-controlno-preview
go-importgithub.com/ycode/ycode git https://github.com/ycode/ycode.git
octolytics-dimension-user_id65892203
octolytics-dimension-user_loginycode
octolytics-dimension-repository_id1165452593
octolytics-dimension-repository_nwoycode/ycode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1165452593
octolytics-dimension-repository_network_root_nwoycode/ycode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8b413ea7a9b010f4f2ebbb923b041b0d6091dd94
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/ycode/ycode/issues/562#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fissues%2F562
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fissues%2F562
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ycode%2Fycode
Reloadhttps://github.com/ycode/ycode/issues/562
Reloadhttps://github.com/ycode/ycode/issues/562
Reloadhttps://github.com/ycode/ycode/issues/562
ycodehttps://github.com/ycode
ycodehttps://github.com/ycode/ycode
Codehttps://github.com/ycode/ycode
Issues7 (7)https://github.com/ycode/ycode/issues
Pull requests1 (1)https://github.com/ycode/ycode/pulls
Discussionshttps://github.com/ycode/ycode/discussions
Actionshttps://github.com/ycode/ycode/actions
Projectshttps://github.com/ycode/ycode/projects
Security and quality1 (1)https://github.com/ycode/ycode/security
Insightshttps://github.com/ycode/ycode/insights
https://github.com/ycode/ycode
New issuehttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/562
New issuehttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/562
perf: request only the font weights and styles a site uses from Google Fontshttps://github.com/ycode/ycode/issues/562#top
https://github.com/ysamcode
ImprovementImprove existing featurehttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com/ysamcode
ysamcodehttps://github.com/ysamcode
on Sep 17, 2026https://github.com/ycode/ycode/issues/562#issue-5487277942
#550https://github.com/ycode/ycode/issues/550
#560https://github.com/ycode/ycode/pull/560
ysamcodehttps://github.com/ysamcode
on Sep 17, 2026https://github.com/ycode/ycode/issues/562#event-31318522042
ysamcodehttps://github.com/ysamcode
ImprovementImprove existing featurehttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Improvement%22
on Sep 17, 2026https://github.com/ycode/ycode/issues/562#event-31318523178
ysamcodehttps://github.com/ysamcode
completedhttps://github.com/ycode/ycode/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 28, 2026https://github.com/ycode/ycode/issues/562#event-34453131659
Sign up for freehttps://github.com/signup?return_to=https://github.com/ycode/ycode/issues/562
Sign in to commenthttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/562
ysamcodehttps://github.com/ysamcode
ImprovementImprove existing featurehttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.