Answer the question
In order to leave comments, you need to log in
Responsive design, banners, display: none - how to combine?
The question is this:
We have a website with adaptive design.
By default, on the desktop version, the visitor sees a banner (for example, the banner code is driven into a div).
When the resolution is reduced, it is logical that he does not need to show the banner.
The easiest option is to set display:none to the above div. But the huge disadvantage of this method is that the JS code of the banner will be executed regardless of the styles of the div, and will even load the banner image (assuming it is a regular jpeg for example). The impression, regardless of whether the user sees the banner or not, will be counted by the banner spinner.
What are the possible solutions in this case? How to do it right?
How, in general, in particular, does Google Yandex relate to banners in display: none - no one came across?
Of course, there is, for example, the same adriver that loads a banner, only upon scrolling and the appearance of the corresponding block on the screen, but I would like a universal solution without big problems and an understanding of the actions in such a situation in general.
Thank you!
Answer the question
In order to leave comments, you need to log in
connect, for example, Detectizr - and for mobile phones do not load anything
I agree about display:none. I have huge tables on my site that can't be adapted in any way. Even if adapting them is impossible to understand. I decided to do this: I created two div blocks in one, placed a table and a marking list in the other. For desktop, a table opens, and for mobile phones, a bulleted list. In fact, nothing is criminal, but I point out something. I wrote about this in Yandex saying that the text that is in the table, that in the list will almost not differ. Waiting for an answer. I'll post as soon as they answer.
Yandex replied:
When determining relevance, several hundred factors are taken into account, and we cannot predict how our algorithm will react to a particular moment. If your site is informative and useful for the user, it can be seen in the search results. I want to note that we do not guarantee the preservation or return of site positions under any circumstances, since the search results are not static and may change.
So it didn't make it clear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question