Topic 08 · SEO

JavaScript and HTML rendering

Content that only appears after JavaScript runs may be seen late by Google, and not at all by most AI crawlers. This topic compares the initial HTML with the final rendered page.

Priority
Critical
Applies to
All sites
Practical guides
15 written out of 15
0/15 done

Free, no account: your progress is saved in this browser.

Download this topic (PDF) 4 pages · 86 KB

Where to start

Three checks with a strong effect, doable before the rest.

  1. 08.01 Inspect the initial HTML Easy · 30 min to 1 h
  2. 08.06 Make links available in HTML with href Intermediate · 1 h to 2 days
  3. 08.08 Check title, description and canonical after rendering Intermediate · 1 to 3 h

The 15 checks of this topic

Click a check to read its guide. Tick the box once it is verified on your site.

Who
Difficulty

1Audit rendering

0/4 done
  1. 08.01
    Inspect the initial HTML

    Read the raw HTML your server returns with curl, the page source or a crawler, and check that text, links, title and canonical are in it.

    Who: Developer Marketing

    Easy 30 min to 1 h
  2. 08.02
    Compare initial HTML and rendered DOM

    Compare the HTML returned by the server with the DOM after JavaScript using the browser, headless Chrome, Puppeteer or Screaming Frog, and rank the gaps.

    Who: Developer

    Intermediate 1 to 2 h
  3. 08.03
    Test rendering in Search Console

    Use Search Console's URL Inspection to see the HTML rendered by Google, the screenshot, blocked resources and JavaScript errors, then fix them.

    Who: Developer Marketing

    Easy 15 min per template
  4. 08.15
    Test which information is accessible without JS

    Check page by page that text, prices, links and SEO tags stay readable without JavaScript, using curl, Chrome, Screaming Frog and an automated test.

    Who: Developer Marketing

    Easy 1 to 3 h, then automated

2Serve content and links in HTML

0/7 done
  1. 08.04
    Prefer SSR/SSG for critical content if relevant

    Serve the main content, links and metadata in the initial HTML through server-side or static rendering, depending on your CMS or JavaScript framework.

    Who: Developer

    Advanced 1 day to several weeks
  2. 08.05
    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.

    Who: Developer

    Intermediate 2 h to 2 days
  3. 08.06
    Make links available in HTML with href

    Make every internal link appear in the HTML as an a tag with a resolvable href, whatever your CMS, your framework and your router.

    Who: Developer

    Intermediate 1 h to 2 days
  4. 08.07
    Avoid links that rely solely on JS events

    Find the cards, buttons, dropdowns and clickable divs that navigate with JavaScript, and replace them with real links without losing the behavior.

    Who: Developer

    Intermediate 2 h to 2 days
  5. 08.11
    Check content loaded via API

    List the content loaded by fetch or XHR, check that Googlebot and AI crawlers can reach it, then render on the server whatever matters for SEO.

    Who: Developer

    Intermediate 2 to 4 h
  6. 08.12
    Check dynamic pagination

    Test the “Load more” button, infinite scroll and JavaScript listings: HTML links, unique URLs, Google rendering and pages that work without scripts.

    Who: Developer

    Intermediate 1 to 3 h
  7. 08.14
    Avoid information available only in Canvas

    Duplicate in HTML the information in charts, maps and configurators drawn in a canvas, for crawlers, AI assistants and screen readers.

    Who: Developer Writer

    Intermediate 1 to 4 h

3Check tags, errors and status codes

0/4 done
  1. 08.08
    Check title, description and canonical after rendering

    Check that title, meta description, canonical and meta robots are unique, in the head of the initial HTML and unchanged after JavaScript, on any CMS or framework.

    Who: Developer

    Intermediate 1 to 3 h
  2. 08.09
    Check rendered structured data

    Check that your JSON-LD structured data is in the initial and rendered HTML, with no duplicates or errors, on WordPress, Shopify, Next.js, Nuxt or Laravel.

    Who: Developer

    Intermediate 1 to 2 h
  3. 08.10
    Fix JS and hydration errors

    Find the JavaScript errors and hydration mismatches that empty or alter your pages for Googlebot, then fix them on Next.js, Nuxt, Angular or WordPress.

    Who: Developer

    Advanced 2 h to 2 days
  4. 08.13
    Check SPA HTTP status codes

    Make your single-page application return real 404, 301 and 5xx codes instead of 200 everywhere, on Apache, Nginx, Cloudflare, AWS, Netlify, Vercel or Next.js.

    Who: Developer System administrator

    Advanced 2 to 6 h