Let's say we have this code


  setTimeout(changeBodyContentTo("content-2"), 5000);

In this case will google crawl and index content-1 or content-2? And how we can test that?

1 Answer 1


Google renders pages and waits for a while before taking a snapshot of the page. Last I checked you had about 5 seconds to render what Google would see.

So I suspect this may not get indexed.

You can test this with the url inspection tool or one of Google's testing tools which will show you the rendered html that they may use. Note that timings in the live tests are different to the real Googlebot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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