Re:Blocking web fonts for speed and privacy (2016)
by qart on Friday September 16, 2022 @11:45PM
(#32874581)
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?
[ Parent
| on HN ]
Re:Blocking web fonts for speed and privacy (2016)
by DavideNL on Saturday September 17, 2022 @09:51AM
(#32877548)
Perhaps "LocalCDN" can use the local font cache? Not sure if it works (/for only FontAwesome...)
Re:Blocking web fonts for speed and privacy (2016)
by curlftpfs on Friday September 16, 2022 @11:51PM
(#32874605)
By domain or filename. Another reason to not use icon fonts.
https://github.blog/2016-02-22-delivering-octicons-with-svg/
Re:Blocking web fonts for speed and privacy (2016)
by toastal on Saturday September 17, 2022 @12:04AM
(#32874670)
Agreed. 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.
Re:Blocking web fonts for speed and privacy (2016)
by charlieyu1 on Saturday September 17, 2022 @02:00AM
(#32875140)
I mean the outdated tutorials still suggest icon fonts. What’s a good alternative?
Re:Blocking web fonts for speed and privacy (2016)
by c12 on Saturday September 17, 2022 @03:09AM
(#32875427)
I sometimes use svg's define symbol method `<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>`.