AJAX + SEO quick question

痴心易碎 提交于 2019-12-06 09:21:05

I have recently just completed the major work for a site that does much of what you're trying to do.

I use the HIJAX technique, which is similiar to what you are doing. The major SEO concern is that your site be accessible with full titles, and meta keys, WITHOUT JAVASCRIPT. That is the way web spiders (google, bing, yahoo, et al) will crawl your site.

to make the site dynamic for visitors, I recommend embedding a hidden span inside of the content that is returned via ajax. Inside of this span, include the page title using PHP. then use javascript to get the content of that span, and set the document.title to it.

Summary:

  1. make the site function without javascript
  2. Add ajax to hijax links
  3. insert a hidden dom node inside of the returned ajax contents
  4. Parse that hidden node for it's title on ajax success, and set the document.title to it.

Can you leverage the IE page transition effect and then something else in Webkit and Firefox?

This seems like a weird rat hole to go down for an effect.

Anything you do in JavaScript for the most part will not be seen by search engines. So even if you could replace the meta tags it wouldn't do you much good.

Are you asking if you can do the second block in JavaScript?

If you want more info on Ajax and Google Search see: http://searchengineland.com/googles-proposal-for-crawling-ajax-may-be-live-34411

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