3

The content of the home page of the project I'm building is divided into 6 parts where the user scrolls and as soon as the first part "section" reaches the end another part is added via AJAX, but these parts only appear if the user scrolls.

I was wondering if Googlebot just reads the code the way it is to present it to the search engine, or do they have some sort of verification that simulates scrolling?

EX:

scroll in: -200

Show <section>Hello 1</section>

scroll in: -700

Show <section>Hello 2</section>

scroll in: -1400

Show <section>Hello 3</section>

2 Answers 2

2

Googlebot loads pages and renders them as they appear without any user interaction. Once the page is loaded, it scans the document object model (DOM), indexes the text, and picks out links to other pages it can crawl. Googlebot does not simulate scrolling, moving the mouse, clicking, typing, or any other action that could be taken by users.

If you want the sections of your page indexed you need to either:

  • Load them all when the page first loads
  • Assign each section its own URL and have links to those URLs. You could use pushState to change the URL for users as they scroll down the page.
1
2

If you want to be 100% certain the page will get properly crawled and indexed, make sure that all of the content (HTML markup) fully loads without the need to scroll down the page.

Lazy loading content or changes based on scroll events are things that GoogleBot can't handle. Or at least...not very easily

Overall, the probability that you will experience issues with indexation is very high.

2
  • 1
    It's worth noting that Googlebot uses a vary tall viewport (9000px was mentioned) which means it may pick up on some of your dynamically loaded content if it is added when visible. Commented Aug 15, 2021 at 4:30
  • 1
    @TonyMcCreath Totally valid. John Mueller has come out saying that he has noticed some instances where googlebot does appear to scroll past static content but not very far. Commented Aug 15, 2021 at 4:46

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.