makes a single-page web application. In order to be crawled by search engine crawlers, the following methods are used:
- put the content that needs to be crawled in the page html file, which is just for search engine crawlers to see
- used after loading the page, js hides the content nodes so that the user cannot see them, so it does not affect the display of the user interface
program is roughly as follows:
<html>
<div>
UI
</div>
<div id="content">
</div>
<script>
;
idcontentdiv;
</script>
</html>
some data show that if you use display:none to modify the div, with id as content, the search engine will determine that the content is illegally hidden, resulting in the page not being included, or ignoring the text of display:none.
will the use of js to hide div, be judged by search engines as SEO cheating?