Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
583 views
in Technique[技术] by (71.8m points)

jquery load() and SEO - anyone got a decent answer?

Many aspects of my site are dynamic. I am using jquery.

I have a div which once the DOM is ready is populated using load().

Then if a button is clicked, using load() once again, this value is replaced by another value.

This kind of setup is common across my site. My homepage is essentially lots of dynamically loaded, refreshed, and changeable content.

What are the repercussions of this for SEO?

Ive seen sites where each page is loaded using load() and then displayed using the animation functions... It looks awesome !

People have posed this question before, but noone has answered it properly.

So any ideas? JQUERY AND SEO??

Thanks

EDIT

Very interesting points. I dont want to overdo my site with jaascript.. just where neccesary to make it look good - my homepage however is one place of concern.

So when the DOM is readY, it loads content into a div. On clicking a tab, this content is changed. I.E No JS, No content.

The beauty here for me is that, there is no duplicated code. Is the suggestion here that i should simply 'print' some default content, then have the tabs link to pages (with the same content) if JS is disabled. I.E sacrifice a little duplicate code for SEO?

As far as degrading goes, my only other place of concern is tabs on the same page.. I have 3 divs, all containing content. On this page two divs are hidden until a tab is clicked. I used this method first before i started playing with JS. Would it perhaps be best to load() these tabs, then have the tab buttons link to where the content is pulled from?

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

None of the content loaded via JavaScript will be crawled.

The common and correct approach is to use Progressive Enhancement: all links should be normal <a href="..."> to actual pages so that your site "makes sense" to a search spider; and the click() event overrides the normal functionality with load() so normal users with JavaScript enabled will see the "enhanced" version of your site.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...