1

I have a Website with heavy jQuery action. In order to create a less chaotic page load I hide() the content container on initial page load and show() it when the page has loaded: $(window).load(function() { //show content...

This is the sequence right now, which works well in a browser for human eyes:

  1. hide content on initial page load.
  2. wait until page has fully loaded.
  3. show content.
  4. do jquery action.

But I wonder how this works for crawlers. Does the crawler wait for "page->loaded" and "scripts->finished"? If not, the crawl result may become messy..

4

1 回答 1

1

首先,隐藏内容在排名中的权重较低,因此您的内容可能无法达到您想要的效果。您要绝对确保搜索引擎看到的是已完成的、不再隐藏的内容。

您可以在 Search Console(以前的网站管理员工具)中使用 Fetch 和 Render as Google 来查看我们(Google)“看到”的内容;在我们题为“使用 Fetch as Google 渲染页面”的帖子中阅读有关该功能的更多信息。如果渲染的图像看起来正确,那么您就可以开始了。

于 2015-07-24T18:00:15.493 回答