Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Googlebot doesn't see jquery generated content

I use jQuery to retrieve content from the database with a json request. It then replaces a wildcard in the HTML (like %title%) with the actual content. This works great and this way I can maintain my multi-language texts in a database, but Googlebot only sees the wildcards, not the actual content. I know Googlebot sees pages without javascript, but is there a way to deal with this? Thanks!

like image 640
John Avatar asked Jun 06 '11 06:06

John


People also ask

Does Google crawl JavaScript generated content?

We ran a series of tests that verified Google is able to execute and index JavaScript with a multitude of implementations. We also confirmed Google is able to render the entire page and read the DOM, thereby indexing dynamically generated content.

Does Google index AJAX content?

Even though Google can usually index dynamic AJAX content, it's not always that simple.

Does Googlebot use JavaScript?

Googlebot processes JavaScript web pages in three phases: crawling, rendering, and indexing.

Does Google crawl AJAX loaded?

Yes, Google crawls dynamic content created using javascript. It can recognize the DOM after loading, including modifications to the title tag. It can also follow links created with the onclick event handler.


1 Answers

Google appears to have a near-fully or fully functional javascript-crawling bot at the time of this answer:

  • In 2009 Google proposed a solution for making AJAX crawlable: https://webmasters.googleblog.com/2009/10/proposal-for-making-ajax-crawlable.html

  • In 2015 Google deprecated the above approach: https://webmasters.googleblog.com/2015/10/deprecating-our-ajax-crawling-scheme.html

  • I have successfully built multiple single page applications that are correctly rendered in Google's Webmaster tools.

  • There are lots of resources on the web if you want to dive deeper:

    • http://searchengineland.com/can-now-trust-google-crawl-ajax-sites-235267
    • http://searchengineland.com/tested-googlebot-crawls-javascript-heres-learned-220157
    • https://www.google.com/webhp?q=does+google+index+angular+single+page+apps
like image 73
BatteryAcid Avatar answered Sep 23 '22 12:09

BatteryAcid