Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Drew Butcher
33,160 PointsFont Awesome Which is Better and Faster?
I have included Font Awesome in a project by downloading the files and included the style tag in my html.... It appears if I want to use an icon I can either use the classname or the unicode.... for example suppose I wanted the ambulance icon then I could use either
<i class="fa fa-ambulance"></i>
or
<i class="fa"></i>
Which is better and faster?
I feel like the first is much more readable but is the unicode faster?
1 Answer
Ryan Frizzell
14,527 PointsDrew Butcher I'm not sure about the performance benefits of either version, but typically if you're editing the html file you would use the first version, and if you're adding the icon using via the css 'content' attribute, you would use the unicode version.