Font Awesome Icons [ Icons ] - CSS Bundle

Font Awesome Icons

I have been using this awesome font library for so long now that i almos overlooked it as being such a stable web developer resource for an amazing set of icons and easy to add to your project.

What is Font Awesome?

Its a library of SVG icons that you can add to your site with one include and then the use of the i tags, with a whole library of icons you can choose from. 

Preview


a preview of Font Awesome Icons

How do i use Font Awesome.

  1. Include this script tag in your site <head>:
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css" />
  2. Usually you can just go to cdnjs.com to grab the latest version of font awesome include.
  3. Pick the icon you want to display from here.
    [1]
  4. Paste that code in your page <body>.

 

Should I use it?

They seem to be making the latest versions of it quite complicated to install with the creation of a kit, im not sure why this would be benificial, i think you maybe able to choose the icon sets that you want to use rather than just loading all icons by default. But just using the basic include seems to be quite good still.

It still is probably better to just source your own SVG icons and include them manually even though this is a bit more work initially. 

File Sizes for Font Awesome

It seems this library consumes a lot of resources.

The Min css file alone is 101kb.

File Size
all.min.css 101 kb
fa-solid-900.woff2 75 kb
fa-regular-400.woff2 14.3 kb
fa-brands-400.woff2 106 kb
  296.3 kb

So the total additional added, even if just using one of the icons is almost 300kb (296.3kb) which seems like a lot for one icon.

If you are using a large amount of the icons then this might be worth it, but it still does seem a bit of a waste of space considering the small size of the singular svg files. 

Extract singular icons

Rather than including 300kb of scripts, you can just extract the icons you want to use from the open source repo here. 

https://github.com/FortAwesome/Font-Awesome/tree/master/svgs[2]

Just browse through the icons here, or use the icons finder and then extract them using the same name. 

For our example icon, the souce of the SVG is only 500 bites. So its tiny. We include 300kb just for the convenience of ease in development, just to embed a 500 bite icon. 

https://github.com/FortAwesome/Font-Awesome/blob/master/svgs/brands/css3-alt.svg[3] 

HTML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M0 32l34.9 395.8L192 480l157.1-52.2L384 32H0zm313.1 80l-4.8 47.3L193 208.6l-.3.1h111.5l-12.8 146.6-98.2 28.7-98.8-29.2-6.4-73.9h48.9l3.2 38.3 52.6 13.3 54.7-15.4 3.7-61.6-166.3-.5v-.1l-.2.1-3.6-46.3L193.1 162l6.5-2.7H76.7L70.9 112h242.2z"/></svg>

Conclusion

The amazing library of icons that Font Awesome has and the ease of installation makes using the icons very easy, I think that the size of the included css might be large. So even while making it easier to install it may increase the size of your project.

Original Source

Font Awesome on Github[4]

Font Awesome Icons Demo

View Demo Full Screen [5] View Demo New Tab [6]

Font Awesome Icons Code

HTML

<h2>Icon with 296kb of scripts</h2>  <p>This icon uses the full font awesome css and library to display it loading 296kb of scripts. </p>  <i class="fa-brands fa-css3-alt fa-4x"></i>    <h2>Icon with no scripts</h2>  <p>This version of the same icon is only 500 bytes, a saving of 295.5kb!</p>  <svg class="css-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M0 32l34.9 395.8L192 480l157.1-52.2L384 32H0zm313.1 80l-4.8 47.3L193 208.6l-.3.1h111.5l-12.8 146.6-98.2 28.7-98.8-29.2-6.4-73.9h48.9l3.2 38.3 52.6 13.3 54.7-15.4 3.7-61.6-166.3-.5v-.1l-.2.1-3.6-46.3L193.1 162l6.5-2.7H76.7L70.9 112h242.2z"/></svg>

CSS

.css-svg {   	height:100px;    	width:100px;    	fill:orange;  }

Scripts

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css" />
keywords icons, font, awesome, posted, 12:27, march, 2022, have, been, using, this, awesome, font, library, long, that, almos, overlooked, being, such, stable, developer, resource, amazing, icons, easy, your, project, what, site, with, include, then, tags, whole, choose, from, preview, preview, include, script, usually, just, cdnjscom, grab, latest, version, pick, icon, want, display, here, paste, code, page, should, they, seem, making, versions, quite, complicated, install, creation, sure, would, benificial, think, maybe, able, sets, rather, than, loading, default, basic, seems, good, still, probably, better, source, them, manually, even, though, more, work, initially, file, sizes, consumes, resources, file, alone, 101kb, size, allmincss, fasolid900woff2, faregular400woff2, fabrands400woff2, 2963, total, additional, added, almost, 300kb, 2963kb, which, like, large, amount, might, worth, does, waste, space, considering, small, size, singular, files, extract, rather, including, scripts, extract, open, repo, https://githubcom/fortawesome/fontawesome/tree/master/svgs, just, browse, through, finder, same, name, example, souce, only, bites, tiny, convenience, ease, development, embed, bite, https://githubcom/fortawesome/fontawesome/blob/master/svgs/brands/css3altsvg, html, conclusion, installation, makes, very, included, while, easier, increase, original, source, github, demo, view, full, screen, code, htmlicon, 296kb, this, uses, full, icon, bytes, saving, 2955kb, csscsssvg, height:100px, width:100px, fill:orange, scripts, external, link, related, tags, free, items, found, comment, nick, name, type, other, categories, pages, animation, animations, background, effects, boxes, buttons, javascript, reset, content, slider, cookie, alerts, design, image, zoom, lightbox, link, modals, mouse, navigation, notifications, parallax, profiles, backgrounds, bootstrap, animated, framework, footers, forms, html, images, scroll, show, text, timeline, animation, animate, stuff, animatecss, animations, check, wave, click, checkbox, watch, cloudy, spiral, css3, notifications, toast, messages, standalone, library, jquery, notifyjs,

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Items in webdev
Font Awesome Icons [ Icons ] - CSS Bundle Daily Dev Tips CSS Background Patterns by MagicPattern GitHub - ganlanyuan/tiny-slider: Vanilla javascript slider for all purposes. GitHub - jonasstrehle/supercookie: ⚠️ Browser fingerprinting via favicon! URL-encoder for SVG Bootstrap Icons · Official open source SVG icon library for Bootstrap GitHub - kognise/water.css: A drop-in collection of CSS styles to make simple websites just a little nicer Toggle light and dark themes in Bootstrap - DEV Deploy your Publish website for free on GitHub Pages - DEV Bootstrap · The most popular HTML, CSS, and JS library in the world. GitHub - diegocard/awesome-html5: A curated list of awesome HTML5 resources Fixing PHP SQLite database is locked warning - Unable to execute statement: database is locked [ php ] - KruXoR openstreetmap.org 50 Developer tools to make your life a little easier https://www.mrlacey.com/2020/07/youve-only-added-two-lines-why-did-that.html?m=1 GitHub - ForEvolve/bootstrap-dark: Bootstrap 4 dark theme that supports togging dark/light themes as well. There is no fluff, it changes the color of Bootstrap and that's it, no new thing to learn or unlearn, just Bootstrap, but Dark! Responsive Web Design Online Testing - isResponsive Trianglify.io · Low Poly Pattern Generator Grid.js - Advanced table plugin HEAD - A free guide to <head> elements Roots | Modern WordPress Development Tools A Local Dev Tool For Every Project | Lando new.css Synchronized responsive testing, development, inspection | Vanamco Gold Price Charts Widgets | GoldBroker.com Trianglify.io · Low Poly Pattern Generator Special tags that Google understands - Search Console Help 404 Error Page Codepen ScrollMagic ♥ Demo AOS - Animate on scroll library Font Awesome v4.7.0 - Icon Search Tool Carbon Offers — LowEndTalk Featherlight – The ultra slim jQuery lightbox. Tailwind CSS - A Utility-First CSS Framework for Rapidly Building Custom Designs HEAD - A free guide to <head> elements API Blueprint | API Blueprint Filtering Data Client-Side: Comparing CSS, jQuery, and React | CSS-Tricks CSS Quickies: CSS Variables - Or how you create a 🌞white/🌑dark theme easily - DEV Community 👩‍💻👨‍💻 Responsive Slider Timeline Colormind - the AI powered color palette generator Get Waves – Create SVG waves for your next design Nuxt.js - The Vue.js Framework CodeSandbox: Online Code Editor Tailored for Web Application Development Hover.css - A collection of CSS3 powered hover effects Live.js - One script closer to Designing in the Browser Color this sofa! – SVG + Blend Mode trick You Might Not Need jQuery CSS Wave Animation with a .png
Search Linx
Search Linx by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Don't look to be the next Facebook, try to solve a real problem instead.
Unknown
Random CSS Property

background-attachment

The background-attachment CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.
background-attachment css reference