8

As the google bot lets the JS do its work on the page while crawling, for how long does it wait to let the javascript execute after document ready ?

Suppose I have an AJAX response that takes longer than usual, how to make sure that the google bot crawls the content rich site (with the AJAX response) ?

I tried to do some experiment with that and found out that it waits for around 5 seconds. Is it a standard result for everyone ? Has google provided any documentation around this ?

1 Answer 1

3

Googles bot will stick around as long as it needs to unless it times out or is stupidly slow. Regardless what the content is 5 seconds is far to slow and your site will suffer a user experience algorithm against it, which in term will effect your rankings, after-all, no one likes a slow website or page.

Rough idea on page speed:

  • 0-1seconds awesome
  • 1-2seconds good
  • 2-3seconds ok
  • 3-4seconds poor
  • 4-5seconds very poor

In terms of the time allowance for Google's to take the snapshot there isn't one that is official, as far as I know. Unless your pages are usable within 3secs then you should fix the issue.

6
  • 4
    I've noticed that if you have JS timer events, the Google renderer appears to "bypass" the timer delay, executing the event immediately. eg. Timer event to generate page content set for 30 seconds - Google "Fetch and Render" returns immediately with rendered content (not AJAX).
    – MrWhite
    Commented Jun 22, 2015 at 11:47
  • Yep, does the Google cache return AJAX? Commented Jun 22, 2015 at 14:04
  • 6
    For me, it did return the AJAX thing if I timeout the content in the limit of 5 seconds. What I did was, I made a timer that kept on printing a number, in incremental fashion, on the page. And after I did "Fetch and Render", the number I got on my page's snapshot was for 4.98 seconds. Thats why I assumed that they are have a settimeout of something around 5 seconds and they ignore the content loaded after that. Maybe... Commented Jun 22, 2015 at 14:08
  • On what authority is this answer based? Commented Jun 20, 2019 at 12:56
  • @LeeGee did you miss the part ***Rough*** idea on page speed: and you could try using Google 1 2 3 Commented Jun 20, 2019 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.