Proindeksirujut that printed via js?

For all my websites, I wrote js code - document.write (") inside of which my personal social unit with links to my other resources. As the creation of new sites, I can edit only one file, which is very convenient. But the question is: Yandex webmaster there is such a thing as "external links to the site." Would add search engine to the list of these external links is stamped on my tags using JS?
September 26th 19 at 07:20
4 answers
September 26th 19 at 07:22
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 And you make a few pages loaded via ajax, for example, you have here such page:!first!second!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

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.
Not belittling your reply - everything in the case. I want to note that Google still indexes javascript. But strangely and not immediately. I checked. First, like make sure that are not indexed, and then a month later got the proof and was surprised.

See: 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
September 26th 19 at 07:24
Google - Yes, Yasha - like, yet.
It's a shame, thank you - tressa54 commented on September 26th 19 at 07:27
you can link to that Google is able to execute javascript? - diamond.Reinger commented on September 26th 19 at 07:30
Trust me, js run Google sure knows how :] barkalov above gave an example - Gustave.Fay commented on September 26th 19 at 07:33
Google does not guarantee that every page of the website will be processed with javascript, and does not warrant that any javascript is processed, whichever script was not. Guaranteed way - as they state in their documents to developers. - diamond.Reinger commented on September 26th 19 at 07:36
September 26th 19 at 07:26
Like I said earlier, there is only social.block much fuss is not for me, and pointless to be honest... Simpler this code on all these sites to add and update separately
and why you added it via js, not via a server script? (php, or whatever you have on the server) - tressa54 commented on September 26th 19 at 07:29
Because this is not possible. js only - diamond.Reinger commented on September 26th 19 at 07:32
September 26th 19 at 07:28
Google developed by Google Chrome browser. What do you think, does he have the tools to parse JS code?

Find more questions by tags Search engine optimizationHTML