I
I
Ingerniated2019-04-11 17:48:59
Vue.js
Ingerniated, 2019-04-11 17:48:59

Do search engine bots see elements that are created via createElement in js?

Hello!
If some of the elements on the site are created via createElement, will the bot see them and analyze their text and pictures?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2019-04-11
@Ingernirated

Depends on when this element is created.
In general, the situation is as follows: First of all, a bot comes to you, which analyzes the statics. If he sees only JS code that should load the content, then later (but not sure when) another bot will come to you and completely render the page. It will run all scripts. And spars the result. But if your element is not created immediately, but when processing some event, then the bot will not see it.
Therefore, for bots, it is better to give ready-made statics. Vue has support for server rendering for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question