this post was submitted on 04 Mar 2024
96 points (100.0% liked)
technology
23313 readers
130 users here now
On the road to fully automated luxury gay space communism.
Spreading Linux propaganda since 2020
- Ways to run Microsoft/Adobe and more on Linux
- The Ultimate FOSS Guide For Android
- Great libre software on Windows
- Hey you, the lib still using Chrome. Read this post!
Rules:
- 1. Obviously abide by the sitewide code of conduct. Bigotry will be met with an immediate ban
- 2. This community is about technology. Offtopic is permitted as long as it is kept in the comment sections
- 3. Although this is not /c/libre, FOSS related posting is tolerated, and even welcome in the case of effort posts
- 4. We believe technology should be liberating. As such, avoid promoting proprietary and/or bourgeois technology
- 5. Explanatory posts to correct the potential mistakes a comrade made in a post of their own are allowed, as long as they remain respectful
- 6. No crypto (Bitcoin, NFT, etc.) speculation, unless it is purely informative and not too cringe
- 7. Absolutely no tech bro shit. If you have a good opinion of Silicon Valley billionaires please manifest yourself so we can ban you.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It’s actually not uncommon for icons (and occasionally animations) to be loaded as fonts. This is why if you force your web browser to only display a certain font and go to certain websites they display strangely, or just have slightly broken loading screens.
On the web this is (mainly) for optimization. If a website has a few icons there is no problem with loading a few SVGs, or (if there is a very small number) raster images can get a pass. Although, if you’re building an application with a large number of icons (think most hyper-interactive data-driven sites) for every SVG you load that is (unless embedded directly in HTML) a single HTTP request, computers (generally, in most cases) take longer to complete several smaller operations than one big one — these means that compiling your icons into a font is much more optimized than loading them individually.
Now, considering this is Windows (where they don’t particularly seem to care about heavy optimizations and fine tuning) I’m sure it was just easier for them to write a single thing that renders a font instead of something that renders a font and another thing that renders images/animations.