Skip to content

OMBU-793: Combine Google Fonts into a single non-blocking request#69

Open
julioalucero wants to merge 1 commit into
gh-pagesfrom
OMBU-793-redundant-google-fonts-requests
Open

OMBU-793: Combine Google Fonts into a single non-blocking request#69
julioalucero wants to merge 1 commit into
gh-pagesfrom
OMBU-793-redundant-google-fonts-requests

Conversation

@julioalucero

@julioalucero julioalucero commented Jul 7, 2026

Copy link
Copy Markdown
Member

OMBU-793: Combine Google Fonts on a single non-blocking request

Link to Jira

OMBU-793: Redundant Google Fonts requests

3. PR description

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

  • Removed the @import url() from both index.scss (npm) and vendor/assets/stylesheets/ombulabs/styleguide.scss (gem); font loading now belongs to the consuming app.
  • Removed the same @import from the compiled static/styleguide.css and .min.css.
  • Added preconnect hints + one combined css2 <link> (Lato + Open Sans in a single request) to index.html for the demo page/

4. QA steps

  1. Open index.html, DevTools => Network, filter css => one css2 request.
  2. Confirm Lato/Open Sans still render on the demo page.

Notes

@fbuys

fbuys commented Jul 10, 2026

Copy link
Copy Markdown
Member

From lighthouse:
image

@fbuys

fbuys commented Jul 10, 2026

Copy link
Copy Markdown
Member

One single css request for the two font families:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants