# Make content accessible without user interaction

- Check 08.05 · JavaScript and HTML rendering · Critical
- Source: https://checklist-seo-geo.com/en/javascript-html-rendering/make-content-accessible-without-user-interaction
- Put content loaded on click, hover or scroll (tabs, accordions, reviews, “see more”) in the HTML so that search engine and AI crawlers can read it.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/javascript-html-rendering/make-content-accessible-without-user-interaction.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Crawlers do not click, do not hover, do not scroll the page and do not fill in any form. Any content loaded only after a user action (tab, accordion, “read more”, “load more”, reviews on scroll, submenu on hover) escapes them. This check consists of finding this content and putting it in the HTML from the start, even if it is visually hidden. Expected result: with JavaScript turned off, or in the HTML rendered by Google, all the useful content of the page is present, even when collapsed.

## Why it matters

Google's documentation on lazy loading is explicit: Google Search does not interact with the page. Content must load without relying on an action such as scrolling or clicking, as soon as it enters the viewport. Google's rendering service also declines permission requests (geolocation, camera) and keeps neither cookies nor `localStorage` from one page to the next: content that only appears after a remembered consent or a detected location is never seen.

Two cases must be distinguished:

| Case | In the HTML | Seen by Google | Seen by AI crawlers |
| --- | --- | --- | --- |
| Content present in the HTML, hidden with CSS (closed tab, collapsed accordion) | yes | yes | yes, if it is in the initial HTML |
| Content loaded by a request on click or on scroll | no | no | no |
| Content added to the DOM only when a condition becomes true (`v-if`, React conditional rendering, `x-if`) | no | no, unless the condition is true on load | no |

For content that is hidden but present, Google's spokespeople have stated several times that it is indexed normally with mobile-first indexing; there is no dedicated documentation page. Generative engine crawlers, which read the initial HTML without running JavaScript according to published observations, read this text whether it is collapsed or not. What matters is that it is there.

## What it improves

- **Indexing of the full content**: technical specifications, FAQs, reviews and delivery terms become indexable.
- **Long tail**: this content often answers specific queries that do not appear in the text visible at first glance.
- **Citations in AI answers**: an FAQ or a specifications table present in the HTML can be picked up by a generative engine. Nothing guarantees that it will be.
- **Accessibility**: `<details>`, tabs with ARIA and real links work with the keyboard and with screen readers.
- **Performance**: variable effect. Loading all the text makes the HTML slightly heavier; images and videos can stay lazy-loaded.

## How to check

1. Open the page in a private window, without touching anything, then display the page source (`Ctrl+U`, `Cmd+Option+U` on Mac).
2. Open each tab, accordion, “read more” and “see more” in another window and copy a sentence from each.
3. Search for each sentence in the page source.

Sentence found: passes. Sentence missing: the content is loaded on interaction. Confirm with the Network tab of the developer tools: a `fetch` or XHR request sent at the moment of the click is the sign of on-demand loading.

From the command line, for a list of sentences:

```bash
URL="https://example.com/produits/chaise-oslo"
curl -s -L "$URL" -o page.html
while read -r phrase; do
  printf "%s : " "$phrase"
  grep -c -F "$phrase" page.html
done < phrases.txt
```

For Google's point of view, search for the same sentences in the HTML of the live test: see [Test rendering in Search Console](https://checklist-seo-geo.com/en/javascript-html-rendering/test-rendering-search-console).

## How to implement

### Before you start

List the interactions of each template and the fix to apply:

| Interaction | Fix |
| --- | --- |
| Accordion, collapsed FAQ | `<details>` and `<summary>`, content in the HTML |
| Tabs | all panels in the HTML, only one displayed |
| “Read more” | full text in the HTML, truncated with CSS |
| “Load more”, infinite scroll | real pagination links `?page=2`, enhanced with JavaScript |
| Reviews loaded on scroll | first reviews rendered on the server, link to a paginated reviews page |
| Submenu on hover | submenu present in the HTML, displayed with CSS |
| Carousel | all slides in the HTML |
| Content after consent, geolocation, age check | default content displayed, banner on top of it rather than in its place |
| Content reachable only through a search or a filter | links to the useful filtered pages |

Offscreen images and videos can stay on native lazy loading (`loading="lazy"`): Google loads them when they enter the viewport. See [Lazy-load offscreen content](https://checklist-seo-geo.com/en/performance-core-web-vitals/lazy-load-offscreen-content).

### Accordions and FAQs

The `<details>` element provides a native accordion, without JavaScript, keyboard accessible, and its content is in the HTML:

```html
<details>
  <summary>How long does delivery take?</summary>
  <p>Orders placed before 2 pm ship the same day. Allow 2 to 3 business days in mainland France.</p>
</details>
```

Add the same `name` attribute to several `<details>` elements so that only one stays open at a time, in browsers that support it.

### Tabs

All panels are in the HTML; JavaScript only changes which one is visible:

```html
<div class="onglets">
  <div role="tablist" aria-label="Product information">
    <button role="tab" id="t-desc" aria-controls="p-desc" aria-selected="true">Description</button>
    <button role="tab" id="t-carac" aria-controls="p-carac" aria-selected="false" tabindex="-1">Specifications</button>
  </div>
  <section role="tabpanel" id="p-desc" aria-labelledby="t-desc">
    <p>Solid oak chair with a woven seat.</p>
  </section>
  <section role="tabpanel" id="p-carac" aria-labelledby="t-carac" hidden>
    <p>Seat height: 46 cm. Weight: 4.2 kg.</p>
  </section>
</div>
```

```js
document.querySelectorAll('.onglets [role="tab"]').forEach((onglet) => {
  onglet.addEventListener('click', () => {
    const conteneur = onglet.closest('.onglets');

    conteneur.querySelectorAll('[role="tab"]').forEach((autre) => {
      autre.setAttribute('aria-selected', 'false');
      autre.setAttribute('tabindex', '-1');
    });

    conteneur.querySelectorAll('[role="tabpanel"]').forEach((panneau) => {
      panneau.hidden = true;
    });

    onglet.setAttribute('aria-selected', 'true');
    onglet.removeAttribute('tabindex');
    document.getElementById(onglet.getAttribute('aria-controls')).hidden = false;
  });
});
```

Variant: `hidden="until-found"` hides the panel while letting the browser's find-in-page search locate and open it. Browser support varies; check it on MDN before adopting it.

### “Read more”

The full text is in the HTML; CSS truncates it and a button expands it:

```html
<div class="extrait" id="description">
  <p>Full text of the description, over several paragraphs…</p>
</div>
<button type="button" aria-expanded="false" aria-controls="description">Read more</button>
```

```css
.extrait {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.extrait.ouvert {
  display: block;
}
```

```js
document.querySelectorAll('[aria-controls="description"]').forEach((bouton) => {
  bouton.addEventListener('click', () => {
    const ouvert = document.getElementById('description').classList.toggle('ouvert');

    bouton.setAttribute('aria-expanded', String(ouvert));
    bouton.textContent = ouvert ? 'Show less' : 'Read more';
  });
});
```

### “Load more” and infinite scroll

Start from classic pagination, with one URL per page, then enhance it with JavaScript:

```html
<ul id="liste">
  <li><a href="/chaises/oslo">Oslo chair</a></li>
  <!-- 23 other products rendered on the server -->
</ul>
<a href="/chaises?page=2" id="suivant" rel="next">Next page</a>
```

```js
document.getElementById('suivant').addEventListener('click', async (event) => {
  event.preventDefault();

  const lien = event.currentTarget;
  const reponse = await fetch(lien.href);
  const page = new DOMParser().parseFromString(await reponse.text(), 'text/html');

  document.getElementById('liste').append(...page.querySelectorAll('#liste > li'));
  history.pushState({}, '', lien.href);

  const suivant = page.getElementById('suivant');

  if (!suivant) {
    lien.remove();
    return;
  }

  lien.href = suivant.href;
});
```

Crawlers follow the `href` link, visitors see the list grow, and each page keeps its URL. The details are in [Control pagination and infinite scroll](https://checklist-seo-geo.com/en/architecture-navigation/control-pagination-infinite-scroll) and [Check dynamic pagination](https://checklist-seo-geo.com/en/javascript-html-rendering/check-dynamic-pagination).

### Consent, geolocation and age checks

- The consent banner sits on top of the content; it does not replace it and does not gate its loading.
- A local page displays default content and links to each branch or city, instead of waiting for the browser's geolocation.
- An age check that hides all the content makes it invisible to crawlers. If regulations require it, accept that consequence rather than serving crawlers different content.

### WordPress

Versions: WordPress 6.4 and later.

- **Accordions**: the native “Details” block produces a `<details>` element. The tab and accordion widgets of page builders generally place their content in the HTML; check each one with a search in the page source.
- **Archives and shops**: if a plugin replaces pagination with a “load more” button or infinite scroll, check that the pagination links remain in the HTML. In a classic theme, the `the_posts_pagination()` function generates them.
- **Plugin reviews and FAQs**: look in their settings for a lazy loading or “AJAX” option and turn it off for the main content.

### Shopify

Versions: Online Store 2.0 themes, Shopify admin, November 2026.

- The collapsible blocks of recent themes place their content in the HTML; check those of your theme.
- In a collection, keep the `{% paginate %}` tag and its links, even if an app adds infinite scroll:

```liquid
{% paginate collection.products by 24 %}
  {% for product in collection.products %}
    <a href="{{ product.url }}">{{ product.title }}</a>
  {% endfor %}
  {{ paginate | default_pagination }}
{% endpaginate %}
```

- Review apps often load reviews with JavaScript. Choose one that renders at least the first reviews in the template, or that offers an indexable reviews page.

### Wix

Versions: Wix Editor, Wix Studio and Velo, November 2026.

Content loaded by Velo code only makes it into the server render if it is set in `$w.onReady()`, with the promise returned for asynchronous requests. Content displayed by an `onClick` handler or by an `expand()` triggered by the user is not part of the served page. For pagination, Wix recommends links with a `?page=` parameter on the numbered buttons.

### Laravel

Versions: Laravel 11 to 13, Alpine.js 3, Livewire 3 and 4.

- **Blade**: render all the panels in the view and hide them with CSS or with the `hidden` attribute.
- **Alpine.js**: `x-show` keeps the element in the DOM and only hides it; `x-if`, placed on a `<template>`, only adds it when the condition becomes true. Use `x-show` for content to be indexed.

```blade
<div x-data="{ ouvert: false }">
    <button type="button" @click="ouvert = ! ouvert" :aria-expanded="ouvert">Specifications</button>
    <div x-show="ouvert">
        @include('produits.caracteristiques', ['produit' => $produit])
    </div>
</div>
```

- **Livewire**: content loaded by `wire:click` or by a `lazy` component (or `defer` with Livewire 4) is not in the initial HTML. Render it in the first display and hide it on the client.

### Next.js

Versions: Next.js 15 and 16 (App Router).

In React, conditional rendering `{ouvert && <Panneau />}` removes the content from the DOM as long as the panel is closed. Keep the content mounted and hide it:

```tsx
'use client';

import { useState } from 'react';

export default function Caracteristiques({ children }: { children: React.ReactNode }) {
  const [ouvert, setOuvert] = useState(false);

  return (
    <div>
      <button type="button" aria-expanded={ouvert} onClick={() => setOuvert(!ouvert)}>
        Specifications
      </button>
      <div hidden={!ouvert}>{children}</div>
    </div>
  );
}
```

Pass the content as `children` from a server component: it is rendered in the initial HTML, and only the button remains interactive. Avoid loading tab content with `fetch` on click.

### Nuxt

Versions: Nuxt 3 and 4.

In Vue, `v-if` only adds the element to the DOM if the condition is true; `v-show` keeps it and hides it with CSS. For content to be indexed:

```vue
<script setup lang="ts">
const ouvert = ref(false)
</script>

<template>
  <button type="button" :aria-expanded="ouvert" @click="ouvert = !ouvert">Specifications</button>
  <div v-show="ouvert">
    <slot />
  </div>
</template>
```

Load the data with `useFetch` in the page, rendered on the server, rather than on click.

## Common mistakes

- **Confusing hidden with missing**: content hidden with CSS is in the HTML; content loaded on click or rendered conditionally is not.
- **Loading reviews on scroll**: they are often the content richest in customer vocabulary, and they disappear for crawlers.
- **Replacing pagination with a button that has no link**: the following pages are no longer discovered.
- **Putting the content behind the cookie banner**: Google's rendering service does not keep consent from one page to the next.
- **Deferring text to gain performance**: defer images, videos and third-party scripts, not text.
- **Hiding content that is useless to visitors**: text that is permanently hidden and meant only for crawlers counts as a deceptive practice. Collapsed content must be possible to open.

## Frequently asked questions

### Does Google index content hidden in a tab or an accordion?

Yes, if the content of the tab or accordion is present in the HTML and only hidden with CSS, Google reads it during rendering; its spokespeople have said several times that it is taken into account with mobile-first indexing. On the other hand, content loaded by a request at the moment of the click is never seen, because Google does not interact with the page.

### Does Google click “see more” buttons?

No, Google does not click “see more”, “load more” or “read more” buttons, and does not scroll the page like a visitor. Content loaded only after these actions stays invisible to it, as it does to AI crawlers. Put the full text in the HTML and truncate it with CSS, or replace the button with a real link to the next page.

### Is infinite scroll compatible with SEO?

Yes, infinite scroll is compatible with SEO if it relies on classic pagination: each batch of content has its own URL, such as ?page=2, connected by a real href link. Google recommends updating the displayed URL with the History API as the visitor moves through the list. Without these URLs and links, only the first items of the list are discovered.

### Do AI crawlers read the content of a closed accordion?

Yes, an AI crawler reads the text of a closed accordion if it is in the initial HTML, because it analyzes the server response without regard to how it is displayed. It does not read it if the accordion loads its content with JavaScript when opened, since these crawlers do not run scripts according to published observations. The native details element meets this need well.

## Resources

- [Google Search Central: Fix lazy-loaded content](https://developers.google.com/search/docs/crawling-indexing/javascript/lazy-loading)
- [Google Search Central: Fix Search-related JavaScript problems](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript)
- [MDN: the details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details)
- [MDN: the hidden attribute and the until-found value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/hidden)
- [W3C: accessible Tabs pattern (APG)](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/)

Next steps: [Check content loaded via API](https://checklist-seo-geo.com/en/javascript-html-rendering/check-content-loaded-via-api), [Avoid information available only on hover](https://checklist-seo-geo.com/en/semantic-html-accessibility/avoid-information-available-only-hover) and [Test which information is accessible without JS](https://checklist-seo-geo.com/en/javascript-html-rendering/test-which-information-is-accessible-without-js).
