Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

jquery

seo

load

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

like image 836
Thomas Clowes Avatar asked Sep 12 '10 00:09

Thomas Clowes


People also ask

Does AJAX affect SEO?

Single page web applications that use AJAX frameworks have historically been very problematic from an SEO standpoint and caused problems such as: Crawling issues: Important content was hidden behind unparsed JavaScript which only rendered on the client side, meaning Google would essentially just see a blank screen.

Is jQuery good for SEO?

The jQuery library is SEO friendly. You get to decide the way you want to code your site. But how you do, it has a significant impact on its appearance on pages such as Bing and Google among other search engines.

Can jQuery be loaded from an external site?

Is it possible to load a single page from an external website? Yes, it's possible, but you'll need 1 line of PHP :) If you only need RSS feeds and you don't mind relying on Google you could use jquery-feeds.


3 Answers

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.

like image 71
Rex M Avatar answered Nov 11 '22 08:11

Rex M


If your content is navigable when JavaScript is turned off, you'll be a good ways toward being visible to search engines.

Note that search engine crawlers won't be submitting any forms on your site, so if you have any or elements that are meant to be navigating between your site's content pages, that content is not navigable by search engines.

like image 45
Chris Avatar answered Nov 11 '22 09:11

Chris


Here is a guidelines how to make Google to crawl content loaded with ajax: http://code.google.com/web/ajaxcrawling/docs/getting-started.html

like image 28
codez Avatar answered Nov 11 '22 08:11

codez