Customers & growth · SEO & search marketing

JavaScript SEO framework

Best for Startup to Growth

CLIENT-SIDEHYBRIDSERVER-SIDE

Use it when

Your site builds pages with JavaScript, and you need to confirm Google sees each template's content, links and tags and choose how those pages are rendered.

Skip it when

  • You do not yet know which key pages are missing from Google, or why. Run Crawlability & indexation framework first.
  • You need a full technical health check that also covers speed, mobile, security and hreflang. Use Technical SEO audit framework, which treats rendering as one area.
  • Rendering is fixed and you need to see exactly what Googlebot requests across thousands of URLs. Use Log file analysis framework, which this feeds.
  • Pages render fully but load slowly for users. Use Core Web Vitals optimization.

What to apply first and what to use instead are listed below.

Approaches

Server-side rendering

The server builds full HTML for each request, and JavaScript adds interactivity after it loads.

  • Pro Crawlers and users get readable content in the first response, including fresh or personalized data.
  • Con Building pages per request adds server cost and can slow the first byte.

Static rendering

Pages are built as HTML files ahead of time and served from a cache or CDN.

  • Pro Pages load fast and crawlers get complete HTML with no rendering step.
  • Con Every URL needs a built file, which is hard for very large or personalized sites.

Client-side rendering with fixes

The browser builds the page, and the team makes sure links, routes, tags and status codes still work for crawlers.

  • Pro It suits app-like views behind a login and needs no change of architecture.
  • Con It needs more testing, depends on Google rendering the page, and other crawlers may see little.

Inputs

  • Template list
    Each main template with one sample URL, its URL count and its current rendering mode, from the developers.
  • Raw and rendered HTML
    The view-source HTML and the rendered HTML from URL Inspection's live test for each sample URL, pulled this week.
  • Must-index elements
    For each template, the main content, internal links, title, description, canonical, robots tag and structured data that Google needs to see.
  • Page indexing report
    Indexed and not indexed counts with reasons, including soft 404s, from Search Console.
  • JavaScript error logOptional
    Errors captured in the browser over the last 30 days, from your monitoring tool.

Steps

  1. Compare the raw and rendered HTML for each sample URL, and mark which must-index elements appear only after JavaScript runs or not at all.
  2. Check that internal links are a elements with an href, routes use the History API with no fragment URLs, and no content waits for a click, a permission prompt or stored data.
  3. Check that each page has one canonical matching the raw HTML, no noindex in raw HTML on pages meant to rank, and error views that return 404 or carry noindex.
  4. Choose a rendering mode per template, server-side or static for templates that must rank, and record any template left on client-side rendering with its fixes.
  5. Ship the fixes, retest each template with URL Inspection and the Rich Results Test, and request indexing for the key URLs.

Output

A rendering decision and fix sheet with one row per template, retested after release.

  • Template, sample URL and URL count
  • Rendering mode now and chosen
  • Elements missing from raw HTML
  • Elements missing from rendered HTML
  • Link, routing and tag issues
  • Fix and owner
  • Retest date and result

Done when

  • Every main template has a raw and rendered HTML comparison recorded.
  • Every template meant to rank shows its main content, links and tags in the rendered HTML after the fixes.
  • Internal links on every key template are a elements with an href.
  • No page meant to rank has noindex in its raw HTML, and every error view returns 404 or carries noindex.
  • Every template has a chosen rendering mode and a retest result.

Measure

Over four to eight weeks after release, track indexed counts, soft 404 counts and impressions for the affected templates in Search Console. Compare them with the four weeks before the fix. It worked when indexed counts and impressions rise for templates whose content was missing before, and soft 404s fall. Recheck rendered HTML after every major front-end release.

Hypothetical example

Tallypath, a recipe site built as a single-page app, has 9,000 recipe URLs but only a third indexed. URL Inspection shows the rendered recipe pages have content, yet the category pages link to recipes with onclick handlers and no href, and missing recipes return 200 with an error message. The team moves recipe and category templates to static rendering, changes the links to a elements with an href, and sends missing recipes to a URL that returns 404. Retests pass for all six templates. Eight weeks later, indexed recipes have doubled and soft 404s are near zero.

Common mistakes

  • Testing with JavaScript turned off or from an old cached copy. Use the rendered HTML in URL Inspection as the reference.
  • Shipping noindex in the raw HTML and removing it with JavaScript. Google may skip rendering, so set the final robots tag on the server.
  • Linking with onclick handlers or fragment URLs. Use a elements with an href and History API routes.
  • Serving prerendered pages to bots only as a lasting fix. Move templates that must rank to server-side or static rendering.
  • Blocking JavaScript or CSS files, or the API host the page calls, in robots.txt. Leave every file the page needs open to crawlers.

Sources

Show all 5 sources

By company stage

  1. Pre-IdeaNot applicableNo site exists, so rendering choices for search are not yet relevant.
  2. IdeaNot applicableThe site is small and search is not yet a channel, so rendering is low priority.
  3. Early StartupUsefulIf search is a candidate channel, rendering choices matter, but it is not yet proven.
  4. StartupCriticalScaling organic search as a second channel requires that JavaScript pages are crawled and indexed.
  5. GrowthCriticalLarge JavaScript sites risk losing indexation across segments and regions without proper rendering.
  6. ScaleUsefulRendering is usually settled, though new products and sites still need checks.
  7. EnterpriseUsefulEngineering standards typically cover this, and the framework helps audit new properties.

Apply first

  • Crawlability & indexation frameworkCustomers & growth · SEO & search marketing

    Rendering choices decide whether content is crawled and indexed; crawl and index mechanics come first.

Use instead

  • Crawlability & indexation framework

    You do not yet know which key pages are missing from Google, or why. Run Crawlability & indexation framework first.

  • Technical SEO audit framework

    You need a full technical health check that also covers speed, mobile, security and hreflang. Use Technical SEO audit framework, which treats rendering as one area.

  • Log file analysis framework

    Rendering is fixed and you need to see exactly what Googlebot requests across thousands of URLs. Use Log file analysis framework, which this feeds.

  • Core Web Vitals optimization

    Pages render fully but load slowly for users. Use Core Web Vitals optimization.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account