B
B
Boooom2018-12-19 10:28:39
Search Engine Optimization
Boooom, 2018-12-19 10:28:39

Question about optimizing img and background-image - reducing the count. requests?

Hello everyone Let
's immediately introduce the product page
They write that images that relate directly to the product, the content should be in the tag <img src="name.jpg" alt="">
And if we want to add the block "our objects", "company information", "reviews" to the product page - this information is duplicated on each page product - then the images should be specified as

<div class="image" style="background-image: url('name.jpg')"></div>

It is said that so fewer requests are made.
I want to clarify how much less and where? I open f12, the network tab, refresh the page and see all the same requests as with the original tag img
Is it correct that the content that is duplicated on each product page should be set through the background and thus it will be +1 to search engine optimization?
- - -
I'm not talking about image compression now, it will and I will put .webp, the question is about tags

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Yudin, 2018-12-19
@RotgarSett

For SEO, there is no difference whether the picture is a background or through img. In extreme cases (if there is paranoia), you can close it in noindex, but I would not do that either.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question