News for hackers. Stuff that matters.
Re:Self-host your fonts for better performance by hypertele-Xii on Friday December 04, 2020 @10:04AM (#25302973)
It's only faster on the first load. On all subsequent loads its slower and consumes more bandwidth. I find this irresponsible.
Re:Self-host your fonts for better performance by marcus_holmes on Friday December 04, 2020 @04:43PM (#25308495)
1. If you use, say, 5 icons and there are, say, 250 icons in the full font, then you would need to download the page 50 times to just equal the bandwidth. That's assuming the cache doesn't expire, or it's not an incognito session, or you're not loading it from a CDN where it won't get cached anyway.

2. If you do find this irresponsible, then by all means create a small SVG file with the 5 icons in it and allow that to be cached, or even 5 small individual SVG files if it comes to that.

Re:Self-host your fonts for better performance by mook on Friday December 04, 2020 @11:44AM (#25304445)
That surely depends on context; for a lot of pages I'll never make a second load at all.
Re:Self-host your fonts for better performance by postalrat on Friday December 04, 2020 @12:27PM (#25305116)
Only if your html is dynamic and can't be cached. I find this irresponsible.