Using Javascript to Solve SEO Problems

I would like to know at what stage can I start manipulating HTML elements / content with Javascript so as not to violate SEO?

I read somewhere that HTML content that is hidden using the CSS property display:noneis often punished by Google crawlers, and I don’t know what to believe from ... I ask this because I intend that are hidden at first, but are displayed as only the user clicks the corresponding link. Therefore, I intend not to hide the content from users completely - just in order to give them a better user experience - I’m afraid that Google might do wrong!

My reason for this is to prevent the separation of seconds (or, in some cases, a full 2 ​​seconds) from ghastly unpyled html elements (positioning) before my Javascript goes into position, hides and clears everything. So adding display:noneto the forefront and then using Javascript to switch visibility would be ideal, but apparently no no with the Google Search Engine bot.

Do you have any expert advice? Thank!

+3
source share
2 answers

html , . , Google , , . html (.. ) SEO. , html , . , SEO , - .

, . . , " , , , , ". , javascript "display: none", "onClick", .

EDIT, : - , .

0
+1

Source: https://habr.com/ru/post/1762361/


All Articles