S
S
Svyatoslav Khusamov2016-05-30 11:39:28
HTML
Svyatoslav Khusamov, 2016-05-30 11:39:28

How does Yandex feel about dynamic menus?

In the html code of the page, the main menu of the site is presented in the form of a tree like this:

ul > li > a
ul > li > ul > li
и т.д. любого уровня вложенности

After the page is loaded, the JS code scans this menu and turns it into a menu with only the first level entered, and the rest appear only when you click on the corresponding items.
Will Yandex normally index or consider that illegal JS activity is being carried out on the page with forgery of HTML elements?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Velikotsky, 2016-05-30
@ajur

Yandex will index what is in the html code. What is in JS, he most likely will not see. + I do not think that in your case we are dealing with cloaking - everything should be fine.

F
Fedor Ananin, 2016-05-30
@sarathorn

Yandex will EXACTLY index and see all the links in the menu. On one project, he reacted normally to links under display: none; opened by clicking on another element. So don't worry.
I heard the opinion that the same display: none or hiding in any other way is better to do it through JS, supposedly the search engines will react better, and it will somehow work if the user disables JavaScript (so all hidden elements will be open for him, ugly, but it works)
If your elements are easily accessible on click/hover, then don't worry - search engines will react normally. As far as I know, they even follow links in nofollow and noindex, do not transfer weight to them, but still visit. So they will also go under the hidden link.

S
shagguboy, 2016-05-30
@shagguboy

https://webmasters.googleblog.com/2015/10/deprecat...
Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question