Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Y B
Y B
14,136 Points

Best practice for including fonts

On the how to build a website course We copy in some google fonts via a link.

There is also the option to use @import What is the best practice way to include fonts in a site?

1 Answer

For performance reasons you should always link it in you html...Here is a great article that explains why this is a better way to go:

http://www.stevesouders.com/blog/2009/04/09/dont-use-import/

Y B
Y B
14,136 Points

Thanks that's a great article, I wonder if the tests would still hold up 5 years on in the latest browsers?

No problem!