PX Forums demoYou are signed in as Member. Try it as: Member · Moderator · AdminOne click, no password. All changes are reset every night at 03:45 CET.
Skip to content
Sam Member
Skip to content

How do I use a custom font from Google Fonts without slowing the site?

New topic
Notifications

Notifications

View all notifications
Messages
Sam MemberAccount menu
Sam Member @member · 0 karma
My profile My topics Subscriptions Messages Settings
Replies
6
Voices
7
Views
407
Last activity
Subscribe
Diego Alvarez Topic starter Member147 karma34 posts · Joined Dec 2026

I added the stylesheet link and the page feels slower.

Choose a reaction
Quote
Report
Reply
Nora Bergström Member225 karma42 posts · Joined Dec 2026

A trick that helped me: design the mobile layout first, then add columns as the screen grows.

Choose a reaction
Quote
Report
Reply
Yuki Tanaka Member375 karma45 posts · Joined Dec 2026

Self-host the font. Download the files, put them in your child theme and declare them with font-display: swap:

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

You skip an extra DNS lookup, and the text shows immediately in the fallback font.

Choose a reaction
Quote
Report
Reply
Omar Haddad Helper367 karma46 posts · Joined Dec 2026

I like how restrained this is. Less really is more.

Choose a reaction
Quote
Report
Reply
Thomas Green Member170 karma31 posts · Joined Dec 2026

Looks good! The spacing between the cards is really nice.

Choose a reaction
Quote
Report
Reply
Sofia Ricci Helper759 karma59 posts · Joined Dec 2026

Thanks for sharing. Could you post the CSS for the header?

Choose a reaction
Quote
Report
Reply
Aisha Khan Member302 karma32 posts · Joined Dec 2026

Have you tested it with a long title? It might wrap awkwardly on small screens.

Choose a reaction
Quote
Report
Reply

Your reply

Cancel Markdown supported · Ctrl+Enter to send