How fonts affect your website's performance

The way you use fonts on your website can affect its performance. It usually doesn't have a big impact, so you'll probably want to worry about the big performance hits like images first.

But if you want to squeeze a little more speed out of your site, taking a look at your fonts can help.

p { font-family: Helvetica, Arial, 'Droid Sans', sans-serif; }
@media only screen and (min-width: 30em) {
                  p { font-family: ShinyHappyFont, Helvetica, Arial, sans- serif; }
}

After using @font-face to declare the font you want to add to your site, the browser won't actually download the file until it's needed on the screen. So if the font is only called in a media query that doesn't apply to the current screen size, the browser won't download the font file.

Tinytype

Use Tinytype to see which system fonts are available on each mobile platform

Not all devices have the same system fonts installed, so you need to make sure to include options for each mobile platform in your font stack. You can do this by visiting Tinytype.

Words: Clarissa Peterson

Clarissa is a UX designer and web developer at Peterson/Kandy, and the author of Learning Responsive Web Design. This article was originally published in net magazine issue 267.

Liked this? Read these!

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

TOPICS
Creative Bloq Staff
All things Creative Bloq

The Creative Bloq team is made up of a group of art and design enthusiasts, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson, Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The ImagineFX magazine team also pitch in, ensuring that content from leading digital art publication ImagineFX is represented on Creative Bloq.