E
E
Enniack2015-09-09 22:19:35
css
Enniack, 2015-09-09 22:19:35

Icon Fonts vs Sprites. What's better?

Icon fonts seem to fly on some browsers, and there are more requests from the server to them. Sprites, if also SVG, in my opinion are more efficient - fewer requests to the server, scalable.
What do you recommend to use?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
TANK_IST, 2015-09-09
@Enniack

SVG, since you can change layer styles through css, animations by layers, well, this is still vector graphics, which means that everything will be perfect on retina and when zooming. True, to access styles through css, you need to insert svg directly into html, but this is not a problem.

A
Andrey Sokolov, 2015-09-10
@oui

Fonts - the same svg. What are you talking about? Why are there more requests for fonts? You include one file and use :before/:after. Anywhere you use it just like text, change the size / color, you don’t need to write through img / background, you don’t need to write the position of the icon like in sprites, collecting them is much easier than sprites, especially if you use similar services - https://icomoon. io/app/ . Sprites are suitable when the icons are raster, which cannot be driven into a vector.

M
Maxim Gatilin, 2016-03-17
@gatilin222

We at glivera-team use both fonts and sprites. How to use I wrote in the articles Icon fonts and How we use SVG sprites . And then the choice is yours)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question