When Googlebot sees a link, will it click it or navigate to it?
- by FakeRainBrigand
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:
will Googlebot receive the prerendered version, or allow JavaScript to instead invoke pushState, etc.
if it doesn't make the direct request, will it wait for AJAX content to be loaded?
does Googlebot implement pushState, so it will show the proper URL in search results?