3 ms·
I have been doing this since years but many sites become unusable with FontAwesome blocked. For the time being, I manually unblock fonts on absolutely necessary
by qart 4y ago
I have been doing this since years but many sites become unusable with FontAwesome blocked. For the time being, I manually unblock fonts on absolutely necessary websites. Any hints on how I can unblock only fonts from FontAwesome, preferably from ublock origin?
- curlftpfs 4y agoBy domain or filename. Another reason to not use icon fonts. https://github.blog/2016-02-22-delivering-octicons-with-svg/ https://github.blog/2016-02-22-delivering-octicons-with-svg/
- toastal 4y agoAgreed. It's been like 7 years since icon fonts were recommended and it's a real shame I still regularly see people do it today.
- charlieyu1 4y agoI mean the outdated tutorials still suggest icon fonts. What’s a good alternative?
- c12 4y agoI sometimes use svg's define symbol method `<defs>` (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs https://developer.mozilla.org/en-US/docs/Web/SVG/Element/def...), you combine all the icons you use into one document that you load with display none and then reference those symbols anywhere else on the page using svg `<use>`.
- termin4l 4y agoUse graphics for icons. For a11y reasons, include a text alternative, like the alt attribute on <img> elements or adding a <title> in your <svg>. https://css-tricks.com/accessible-svgs/ https://css-tricks.com/accessible-svgs/
- DavideNL 4y agoPerhaps "LocalCDN" can use the local font cache? Not sure if it works (/for only FontAwesome...) https://www.localcdn.org/test/fontawesome https://www.localcdn.org/test/fontawesome