Answer the question
In order to leave comments, you need to log in
Will it be possible to “deceive” search engines using hidden content for SEO-optimization of SPA applications?
I’ll make a reservation right away that we are not talking about the so-called. black seo and malicious intent.
There is an application using RoR on the back end and React on the client, and some pages that are in dire need of indexing by search robots.
An example of the tag markup <body>
for such a page coming from the backend:
<body>
/* пустой див, куда будет зарендерено приложение (React.render(<App/>, document.getElementById('mount'))) */
/* Для пользователя */
<div id="mount"></div>
/* Спрятанный див с контентом, схожим по структуре с тем, что будет в диве выше */
/* Для поисковых роботов */
<div id="hidden_content" style="display: none;">/* контент */</div>
</body>
<head>
(fully and correctly displaying the essence of the page content) and an empty div #mount
.
Answer the question
In order to leave comments, you need to log in
Google and Yandex style="display: none;" has been cutting for a long time. at best, this text is not indexed. at worst, as already mentioned, you go to the bottom of the issue. besides, they run javascript on the main pages, thereby indexing the result already. and in total with an attempt to hide content - nothing good
I don’t think that there will be a ban, but the fact that display: none is not indexed is for sure.
Usually, ordinary static pages are used to promote SPAs.
Two things can help you.
2. Application rendering on the backend.
2. prerenderer.io
I also had a problem with the site indexing on react. Crutches like yours are not worth doing.
We used the second option, set up our devops and everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question