{
    "title": "Client-side rendering (CSR)",
    "description": "Client-side rendering means the browser builds the page with JavaScript. What it means for Google, AI crawlers and speed, and how to check it.",
    "url": "https://ursy.com/wiki/client-side-rendering/",
    "canonical": "https://ursy.com/wiki/client-side-rendering/",
    "markdown": "https://ursy.com/wiki/client-side-rendering/index.md",
    "json": "https://ursy.com/wiki/client-side-rendering/index.json",
    "published": "2026-11-25T00:34:39+00:00",
    "updated": "2026-11-25T00:34:39+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/client-side-rendering/",
    "headings": [
        {
            "level": 2,
            "text": "What is client-side rendering?",
            "id": "what-is-client-side-rendering",
            "url": "https://ursy.com/wiki/client-side-rendering/#what-is-client-side-rendering"
        },
        {
            "level": 2,
            "text": "How does it compare with other ways of rendering?",
            "id": "how-does-it-compare-with-other-ways-of-rendering",
            "url": "https://ursy.com/wiki/client-side-rendering/#how-does-it-compare-with-other-ways-of-rendering"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/client-side-rendering/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/client-side-rendering/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "What about speed?",
            "id": "what-about-speed",
            "url": "https://ursy.com/wiki/client-side-rendering/#what-about-speed"
        },
        {
            "level": 2,
            "text": "Is dynamic rendering a fix?",
            "id": "is-dynamic-rendering-a-fix",
            "url": "https://ursy.com/wiki/client-side-rendering/#is-dynamic-rendering-a-fix"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/client-side-rendering/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/client-side-rendering/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/client-side-rendering/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/client-side-rendering/#questions"
        },
        {
            "level": 3,
            "text": "Is client-side rendering bad for SEO?",
            "id": "is-client-side-rendering-bad-for-seo",
            "url": "https://ursy.com/wiki/client-side-rendering/#is-client-side-rendering-bad-for-seo"
        },
        {
            "level": 3,
            "text": "Does Google index JavaScript content?",
            "id": "does-google-index-javascript-content",
            "url": "https://ursy.com/wiki/client-side-rendering/#does-google-index-javascript-content"
        },
        {
            "level": 3,
            "text": "Which should a small business site use?",
            "id": "which-should-a-small-business-site-use",
            "url": "https://ursy.com/wiki/client-side-rendering/#which-should-a-small-business-site-use"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/client-side-rendering/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/client-side-rendering/#sources"
        }
    ],
    "links": [
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "DOM",
            "url": "https://ursy.com/wiki/dom-document-object-model/",
            "internal": true
        },
        {
            "text": "single-page application",
            "url": "https://ursy.com/wiki/single-page-application/",
            "internal": true
        },
        {
            "text": "Server-side rendering",
            "url": "https://ursy.com/wiki/server-side-rendering/",
            "internal": true
        },
        {
            "text": "web.dev guide to rendering",
            "url": "https://web.dev/articles/rendering-on-the-web",
            "internal": false
        },
        {
            "text": "client-side vs server-side rendering",
            "url": "https://ursy.com/wiki/client-side-vs-server-side-rendering/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "JavaScript SEO basics",
            "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics",
            "internal": false
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "hit",
            "url": "https://ursy.com/wiki/hit-analytics/",
            "internal": true
        },
        {
            "text": "Google discovers",
            "url": "https://ursy.com/wiki/google-discover/",
            "internal": true
        },
        {
            "text": "internal linking",
            "url": "https://ursy.com/wiki/internal-linking/",
            "internal": true
        },
        {
            "text": "soft 404",
            "url": "https://ursy.com/wiki/soft-404/",
            "internal": true
        },
        {
            "text": "noindex",
            "url": "https://ursy.com/wiki/noindex/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "AI crawlability",
            "url": "https://ursy.com/wiki/ai-crawlability/",
            "internal": true
        },
        {
            "text": "AI crawlers",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "live fetchers",
            "url": "https://ursy.com/wiki/live-fetcher/",
            "internal": true
        },
        {
            "text": "llms.txt",
            "url": "https://ursy.com/wiki/llms-txt/",
            "internal": true
        },
        {
            "text": "Interaction to Next Paint",
            "url": "https://ursy.com/wiki/interaction-to-next-paint/",
            "internal": true
        },
        {
            "text": "Total Blocking Time",
            "url": "https://ursy.com/wiki/total-blocking-time/",
            "internal": true
        },
        {
            "text": "Core Web Vitals",
            "url": "https://ursy.com/wiki/core-web-vitals/",
            "internal": true
        },
        {
            "text": "async and defer scripts",
            "url": "https://ursy.com/wiki/async-and-defer-scripts/",
            "internal": true
        },
        {
            "text": "dynamic rendering page",
            "url": "https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering",
            "internal": false
        },
        {
            "text": "title tag",
            "url": "https://ursy.com/wiki/title-tag/",
            "internal": true
        },
        {
            "text": "meta description",
            "url": "https://ursy.com/wiki/meta-description/",
            "internal": true
        },
        {
            "text": "JSON-LD",
            "url": "https://ursy.com/wiki/json-ld/",
            "internal": true
        },
        {
            "text": "robots.txt",
            "url": "https://ursy.com/wiki/robots-txt/",
            "internal": true
        },
        {
            "text": "URL",
            "url": "https://ursy.com/wiki/url/",
            "internal": true
        },
        {
            "text": "JavaScript SEO Checker",
            "url": "https://ursy.com/javascript-seo-checker/",
            "internal": true
        },
        {
            "text": "AI Readiness Checker",
            "url": "https://ursy.com/ai-readiness-checker/",
            "internal": true
        },
        {
            "text": "Markdown Version Checker",
            "url": "https://ursy.com/markdown-version-checker/",
            "internal": true
        },
        {
            "text": "Heading Checker",
            "url": "https://ursy.com/heading-checker/",
            "internal": true
        },
        {
            "text": "Broken Link Checker",
            "url": "https://ursy.com/broken-link-checker/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "URL Inspection",
            "url": "https://ursy.com/wiki/url-inspection/",
            "internal": true
        },
        {
            "text": "JavaScript rendering check",
            "url": "https://ursy.com/pro/javascript-rendering-check/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "Rendering",
            "url": "https://ursy.com/wiki/rendering/",
            "internal": true
        },
        {
            "text": "Critical rendering path",
            "url": "https://ursy.com/wiki/critical-rendering-path/",
            "internal": true
        },
        {
            "text": "MDN Web Docs: SPA (Single-page application)",
            "url": "https://developer.mozilla.org/en-US/docs/Glossary/SPA",
            "internal": false
        }
    ],
    "words": 1141,
    "text": "Client-side rendering (CSR) is a way of building web pages where the server sends a mostly empty HTML file plus JavaScript, and the visitor’s browser runs that JavaScript to build the page content. web.dev defines it as rendering an app in a browser, using JavaScript to change the DOM. It can feel quick once loaded, but anything that does not run JavaScript sees little or nothing. What is client-side rendering? With classic pages, the server sends finished HTML: the text, headings and links are in the file. With CSR, the first file is often a shell with one empty box and a script tag. The browser downloads the script, asks an API for the data, and then writes the content into the DOM. Many apps built with JavaScript frameworks work this way. CSR is often paired with a single-page application. MDN describes an SPA as a web app that loads only one web document and then updates its body through JavaScript APIs such as Fetch when new content is needed. Moving between “pages” does not load a new HTML file; the script swaps the content. How does it compare with other ways of rendering? Method Where HTML is built What a crawler gets first Client-side rendering In the browser, by JavaScript A shell; content only after scripts run Server-side rendering On the server, per request Full content Static rendering At build time, one file per address Full content Hydration Server first, then scripts add interactivity Full content The web.dev guide to rendering gives these definitions. Our page on client-side vs server-side rendering goes into the trade-offs in more detail. Why does it matter for search? Google can run JavaScript, but it does so in a separate step. Its JavaScript SEO basics page says Google handles JavaScript apps in 3 phases: crawling, rendering and indexing. Pages wait in a render queue, which may take a few seconds but can take longer. Until the page is rendered, Google sees only what was in the first HTML. The same page lists the traps that hit CSR sites most: Links. Google discovers a link only when it is written as an <a> tag carrying an href address. A button that changes the view with a click handler is not a link to a crawler. See internal linking. Fragments. Google asks you not to use fragments (the part after #) to load different content, and to use the History API for routes instead. Soft 404s. A client-side route for a missing item can return status 200 with an error message. Google suggests redirecting to an address that returns a real 404, or adding a robots noindex tag with JavaScript. See soft 404. Noindex. If Google meets a noindex tag in the first HTML, Google may not render the page at all, so your script that takes the tag away never gets its chance. Google still advises building the HTML on the server or ahead of time, since that makes the site faster for users and crawlers, and not all bots can run JavaScript. Why does it matter for AI answers? That last point matters most for AI crawlability. Google’s note that not every bot runs JavaScript applies to the wider web of AI crawlers and live fetchers too: if a bot reads only the raw HTML, a CSR page gives it an empty shell. Your prices, opening hours and product facts are then missing from what the AI system reads. Server-built HTML, or a plain llms.txt and Markdown copy, gives these readers the facts without needing a browser. What about speed? web.dev warns that CSR can be hard to make and keep fast on mobile, and that the JavaScript needed tends to grow as an app grows, which can hurt Interaction to Next Paint. It advises aggressive code-splitting for apps with large bundles, to cut Total Blocking Time and INP during loading, and lazy-loading JavaScript so users get only what they need. See Core Web Vitals and async and defer scripts. Is dynamic rendering a fix? Not any more. Google’s dynamic rendering page calls it a workaround and not a long-term solution. Its advice now is to build pages on the server, at build time, or on the server with hydration added. Common mistakes Testing only in your own browser. Your browser runs the scripts; many bots do not. Titles set late. Google says JavaScript can set the title tag and meta description, but other readers may only see the empty shell values. Structured data added only by script. Put JSON-LD in the server HTML where you can. Trusting the shell to stay empty of facts. Put your key facts in the first HTML, and check robots.txt lets crawlers fetch the page itself. Every product behind one address. Each item needs its own real URL. A worked example A small furniture shop rebuilds its catalogue as a CSR app. In a browser, each sofa page shows its name, price and stock. Fetching the raw HTML of the same address shows only a page title and an empty box. Product links are buttons, and the address of each sofa uses #/sofa-12. Google finds 1 address, not 300. The fix: real paths such as /sofas/oslo-3-seater/ through the History API, true <a href> links, and product details rendered on the server, with scripts left to handle the basket. How to check it Put one product or article address into our JavaScript SEO Checker and see how much text exists before scripts run. Test what an AI system can read with the AI Readiness Checker, and whether you offer a plain copy with the Markdown Version Checker. Check headings and links exist in the HTML with our Heading Checker and Broken Link Checker. Confirm missing pages return the right status with the HTTP Header Checker. In Google Search Console, open URL Inspection on an address and view the rendered HTML from Google’s own test. In URSY Pro, the JavaScript rendering check (Pro) will watch this across the site. See also JavaScript SEO. Questions Is client-side rendering bad for SEO? Not by itself, but it adds risk and delay. Google renders it in a later step, and other bots may not render it at all. Does Google index JavaScript content? Yes, after the rendering step. Google says that step can come seconds or longer after the crawl. Which should a small business site use? Server-built or static HTML for content pages. Keep client-side scripts for parts that need them, such as filters or a basket. Related words Rendering Server-side rendering Single-page application JavaScript SEO Critical rendering path Sources web.dev: Rendering on the Web, checked 25 November 2026 Google Search Central: Understand JavaScript SEO basics, checked 25 November 2026 Google Search Central: Dynamic rendering as a workaround, checked 25 November 2026 MDN Web Docs: SPA (Single-page application), checked 25 November 2026 Updated 25 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/client-side-rendering/"
}