S
S
SergeyKisliy2016-01-06 20:03:25
css
SergeyKisliy, 2016-01-06 20:03:25

SVG sprite - I have 16 icons for 300 lines of code. Is it normal to load so much code in the head?

I'm trying out svg sprites and have some questions.
How will search engines react to the fact that I insert 300 lines of svg sprite code into the head? Is there any elegant way to solve this problem? I'm not going to change the color, but the size needs to be changed depending on the page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Gatilin, 2016-03-17
@SergeyKisliy

And you can use caching in localStorage. I wrote about how to make a sprite and cache it in the article How we use SVG sprites

A
Adamos, 2016-01-06
@Adamos

Three hundred lines of icons on every page? Of course it's not normal!
Upload the file and scale on the page .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question