Neither Google, nor Yandex are not able to index pages that are displayed is javascript, at least not automatically.
But Google, and Yandex that
can be taught.
In order that the search engines are able to index ajax pages that need a special way to prepare the site.
For example, you have a website www.example.com. And you make a few pages loaded via ajax, for example, you have here such page:
www.example.com/#!first
www.example.com/#!second
www.example.com/#!third
(it is important to add the exclamation point!)
After that, you must prepare a server script which will output the same content that an ajax version (otherwise there may be problems).
You want to make available the next page
www.example.com/?_escaped_fragment_=first
www.example.com/?_escaped_fragment_=second
www.example.com/?_escaped_fragment_=third
And then the search engine will be able to index your site. And your javascript no one will do, suddenly you are there to bitcoin mining. (although there was talk that Google runs scripts to check chgo sort of).
Here's an article about it in
Google, but
Yandex.
Here is
an article about how all this can be configured.
See: barkalov.ru/crawltest/mode2.html there are two words, one is statically written in html (to check whether indexing), the other generated javascript (in different ways mode2-mode9)
Initially after the bypass links of robot googlies only statics. But then (a month has passed, I haven't checked exactly when) "scripting" the word also became guslitsa. But strangely, because the "quote" from the site on the search results page of the word no. - tressa54 commented on September 26th 19 at 07:25