SEO optimization for content generated by Javascript?

帅比萌擦擦* 提交于 2019-12-30 07:29:21

问题


I have created widgets for my website(xyz.com), which can be embedded in different websites. Let's say I embed a widget which is a photo album, in another website, abc.com. The content is residing on xyz.com but is pulled via Javascript into abc.com.

Will the content generated by the widgets (Javascript) on abc.com will be indexed by search engines?


回答1:


Google will not index anything that is not visible when a page is loaded with JavaScript disabled.

There is more information in this similar question: google indexing text retrieved by ajax or javascript after page load

Also, you can test what Googlebot 'sees' by using the "Fetch as Googlebot" feature of Google Webmaster Tools.

If you want Google to index your Ajax, you can read Google's recommendations here: http://code.google.com/web/ajaxcrawling/docs/getting-started.html




回答2:


If you follow Google's scheme for Making AJAX Applications Crawlable, then Google will index content that's generated with Javascript. So will Bing and Yandex.

Implementing this scheme is somewhat involved which is why there are companies that provide it as a service that plugs in at webserver level. (I work for one of these: https://ajaxsnapshots.com



来源:https://stackoverflow.com/questions/7885710/seo-optimization-for-content-generated-by-javascript

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!