When Googlebot sees a link, will it click it or navigate to it?

Posted by FakeRainBrigand on Pro Webmasters See other posts from Pro Webmasters or by FakeRainBrigand
Published on 2013-11-06T05:04:12Z Indexed on 2013/11/06 10:12 UTC
Read the original article Hit count: 303

Filed under:
|
|

My site uses pushState and JSON data to display content. So, for example, this might appear on my page:

<a href="/some/page">some page</a>

The JavaScript then prevents the default action (following the link), and instead renders a view (using a different api, such as /getjson?some_page).

$('[href]').click(function(){
    history.pushState(...);
    handleURL(...);
});

Assume my server will respond to requests at /some/page with a pre-rendered version.

My questions are:

  1. will Googlebot receive the prerendered version, or allow JavaScript to instead invoke pushState, etc.
  2. if it doesn't make the direct request, will it wait for AJAX content to be loaded?
  3. does Googlebot implement pushState, so it will show the proper URL in search results?

© Pro Webmasters or respective owner

Related posts about seo

Related posts about google