google indexing text retrieved by ajax or javascript after page load

社会主义新天地 提交于 2019-12-14 03:56:14

问题


a couple of google questions:
1 - is there ANY chance that google will "see" text retrieved using ajax?
the user selects from a chain of select boxes and some text from the Db is displayed.

2 - if i change the page title using javascript, outside the HEAD area, will google index the modified title?

sorry if these are trivial questions and thanx for any reply
have a nice day :-)


回答1:


What Google sees is what you see when you disable javascript on your browser. So the answer to both your questions is no.

The correct way to have all the data of your site indexed is to degrade gracefully inside <noscript> tags. For example, you could offer an interface to browse all the content of your database, using list and sublists of requests that point to proper result pages, that are well integrated in your site.

Warning note: your content must really be a noscript version of your site. If you create a special site, it becomes cloaking, which is forbidden.


Update: Since 2014, Google seems to support everything you can think of (including javascript and ajax).




回答2:


Try using seo-browser.com or lynx browser to see how google see your site.




回答3:


Also see this answer on Googlebot doesn't see jquery generated content and/or this document by Google, on ways you can have your AJAX content spidered.



来源:https://stackoverflow.com/questions/6211257/google-indexing-text-retrieved-by-ajax-or-javascript-after-page-load

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