Skip to content

Combine Google Fonts into a single preconnected request#36

Open
julioalucero wants to merge 1 commit into
gh-pagesfrom
FR-744-redundant-google-fonts-requests
Open

Combine Google Fonts into a single preconnected request#36
julioalucero wants to merge 1 commit into
gh-pagesfrom
FR-744-redundant-google-fonts-requests

Conversation

@julioalucero

@julioalucero julioalucero commented Jul 6, 2026

Copy link
Copy Markdown
Member

FR-744: Redundant Google Fonts requests

Link to Jira

FR-744: Redundant Google Fonts requests

PR description

The styleguide fired two separate render-blocking Google Fonts requests via @import inside the shared SCSS. That runs on every consumer, can't be deduped, and can't be preconnected.

  • Removed both @import url() from vendor/.../2-quarks/_typography.scss; font loading now belongs to the consuming app.
  • Removed the same two @imports from the compiled static/styleguide.css and .min.css.
  • Added preconnect hints + one combined <link> (both families in a single request) to index.html for the demo page.

PR related: https://github.com/ombulabs/fastruby.io/pull/1153

QA steps

  1. Open index.html, DevTools => Network, filter css, should be one css2 request, not two.
  2. Check Oxygen and Source Code Pro still render correctly.
  3. Confirm it on Fastruby.io, which looks the same, and make one request.

Notes

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