In short
Server-side rendering (SSR) builds the page's HTML on every request; static site generation (SSG) builds it in advance, at build time. In both cases, the content arrives in the server response instead of being produced by JavaScript in the browser. This check consists of identifying the critical content that currently depends on client-side rendering and moving it to SSR or SSG. Expected result: the main text, links, title, canonical and structured data of the pages you want ranked are in the initial HTML.
Why it matters
With client-side rendering (CSR), the server sends an almost empty shell and a JavaScript file that builds the page. Google can run it, but in two stages: the page waits in a rendering queue, and any script or API failure results in missing content. Google itself writes that server-side rendering or pre-rendering is still a good idea, because it makes the site faster for users and crawlers, and because not all crawlers run JavaScript.
That is the case for most generative engine crawlers. An analysis published by Vercel in December 2024 observed no JavaScript execution by OpenAI's crawlers, ClaudeBot or PerplexityBot, and recommends server-rendering the main content, metadata and navigation. To these engines, a site rendered entirely on the client is therefore a series of empty pages.
The choice also has a cost. According to web.dev, SSR can increase TTFB (Time To First Byte) since the server does work on every request, while SSG gives a fast and consistent TTFB. CSR makes the JavaScript heavier as the application grows, which weighs on INP (Interaction to Next Paint, responsiveness). Hence the “if relevant”: only content that crawlers need to read moves to SSR or SSG.
Dynamic rendering, which serves a pre-rendered version to crawlers only, is no longer a recommended solution: Google describes it as a workaround and not a long-term solution, and recommends server-side rendering, static rendering or hydration instead.
What it improves
- Visibility in generative engines The content becomes readable by crawlers that do not run JavaScript. A necessary condition, never a guarantee of being cited.
- Indexing by Google and Bing Less dependence on the rendering queue, links discovered at crawl time.
- Perceived performance The content displays sooner, which often helps LCP (Largest Contentful Paint). Uncached SSR, on the other hand, can slow down TTFB.
- Share previews Title, description and Open Graph image present for social network bots.
- Rankings No direct effect; the effect comes through content that is indexed better and faster.
How to check
On one page of each template, search for a sentence from the main content in the server response:
curl -s -L https://example.com/produits/chaise-oslo | grep -c "sentence from the main content"
0 means this content is rendered on the client. Also look at what the page body contains:
curl -s -L https://example.com/produits/chaise-oslo | sed -n '/<body/,/<\/body>/p' | head -40
A body reduced to <div id="root"></div> or <div id="app"></div> followed by <script> tags is the signature of an application rendered entirely on the client. The full method is in inspect the initial HTML (opens in a new tab).
How to implement
Before you start
1. List the critical content. For each template you want ranked: main text, headings, price and availability, navigation and pagination links, title, meta description, canonical, meta robots, JSON-LD structured data, Open Graph tags. The rest (cart, account, personalized recommendations, widgets) can stay on the client.
2. Choose the rendering mode for each page type:
| Mode | How it works | Suited to | Limitation |
|---|---|---|---|
| SSG | HTML generated at build time | articles, service pages, documentation, local pages | rebuild or regeneration needed for every change |
| Incremental regeneration | static HTML regenerated after a delay or on an event | catalogs, product pages updated regularly | content may lag behind by the chosen delay |
| SSR | HTML generated on every request | real-time prices and stock, heavily personalized non-indexed pages | server load, TTFB to monitor: add a cache |
| Pre-rendering an SPA | public routes exported as HTML at build time | existing client-rendered application | many dynamic pages are hard to cover |
| CSR | page built in the browser | customer area, dashboard, internal tools | keep it for non-indexed pages |
3. Keep the interactivity. SSR and SSG do not remove JavaScript: the browser then “hydrates” the page to make it interactive. Hydration errors are covered in Fix JS and hydration errors (opens in a new tab).
WordPress
Versions WordPress 6.4 and later.
WordPress generates its pages in PHP on the server: the content of posts and pages is already in the initial HTML. Gaps come from plugins that load their content through AJAX after display: product grids with “load more”, reviews, tabs, filters, page builder content. For each one:
- look in the plugin settings for an initial loading option, often turned off in favor of deferred loading;
- prefer native blocks or shortcodes rendered in PHP over widgets that call the REST API from the browser;
- check with curl after every change.
For “headless” WordPress, with a Next.js, Nuxt or Astro front end, follow the section for that framework.
Shopify
Versions Online Store 2.0 themes and Hydrogen storefronts, November 2026.
Shopify themes are rendered on the server in Liquid: titles, descriptions, prices and links are in the initial HTML. Content added by apps is the exception when the app injects it with JavaScript (reviews, recommendations, specification tabs). Prefer apps that provide an app block placed in the theme from the editor (Online Store > Themes > Customize), and check that their content appears in the initial HTML. For metafields, display them directly in the Liquid template rather than through a script.
Hydrogen storefronts render on the server by default; check that the components displaying the content do not load it only in the browser.
Wix
Versions Wix Editor, Wix Studio and Velo (@wix/data SDK), November 2026.
Wix renders pages on the server. With Velo code, only what runs inside the $w.onReady() function makes it into the server-rendered version. For an asynchronous request, return the promise so the server waits for the data:
import { items } from '@wix/data';
$w.onReady(function () {
$w('#listeProduits').onItemReady(($item, itemData) => {
$item('#nom').text = itemData.title;
});
return items.query('Produits')
.find()
.then((results) => {
$w('#listeProduits').data = results.items;
});
});
Collection content connected through a dataset, without code, is automatically included in the server render. Squarespace and Webflow also generate complete HTML on the server; only custom code blocks that fetch their content with JavaScript escape that rendering.
Laravel
Versions Laravel 11 to 13, Livewire 3 and 4, Inertia 2 and 3.
Blade views are rendered on the server: nothing to do for a classic site.
- Livewire: a component's first display is rendered on the server. The
lazyoption (or the#[Lazy]attribute), however, replaces the component with a placeholder and loads it through a separate request; Livewire 4'sdeferoption (or#[Defer]), equivalent to Livewire 3'slazy="on-load", does the same right after the page loads. Do not use them on critical content.
{{-- Critical content: rendered in the initial HTML --}}
<livewire:fiche-produit :produit="$produit" />
{{-- Secondary content: can be deferred --}}
<livewire:produits-similaires :produit="$produit" lazy />
- Inertia (Vue, React, Svelte): without SSR, the response contains only the application container and the page data as JSON. Turn on Inertia's server-side rendering: add the SSR build (
vite build && vite build --ssr), then run the rendering server in production withphp artisan inertia:start-ssr, under a process monitor such as Supervisor. The rendering server requires Node.js on the hosting (Node.js 22 or later with Inertia 3).
Next.js
Versions Next.js 15 and 16 (App Router and Pages Router).
In both routers, an import such as dynamic(() => import('./Composant'), { ssr: false }) on a content component takes that content out of the initial HTML. How data is fetched, however, depends on the router.
App Router
Components are Server Components by default: they are rendered on the server or at build time. Fetch the data in the server component, not in a useEffect:
// app/produits/[slug]/page.tsx
import { notFound } from 'next/navigation';
import AjoutPanier from './ajout-panier';
export async function generateStaticParams() {
const produits = await fetch('https://api.example.com/produits').then((r) => r.json());
return produits.map((produit: { slug: string }) => ({ slug: produit.slug }));
}
export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const reponse = await fetch(`https://api.example.com/produits/${slug}`);
if (!reponse.ok) {
notFound();
}
const produit = await reponse.json();
return (
<article>
<h1>{produit.nom}</h1>
<p>{produit.description}</p>
<p>{produit.prix} €</p>
<AjoutPanier id={produit.id} />
</article>
);
}
generateStaticParams generates the pages at build time; the add-to-cart button, marked 'use client' in its own file, stays interactive and its initial HTML is still rendered on the server. To regenerate periodically, use the revalidation described in the Next.js documentation (the revalidate option, or the 'use cache' directive if Cache Components is enabled).
The trap specific to the App Router: a page marked 'use client' that loads its data in useEffect.
Pages Router
The Pages Router, still supported, fetches data in getStaticProps (at build time) or getServerSideProps (on every request):
// pages/produits/[slug].tsx
import type { GetStaticPaths, GetStaticProps } from 'next';
type Produit = { nom: string; description: string; prix: number };
export const getStaticPaths: GetStaticPaths = async () => {
const produits = await fetch('https://api.example.com/produits').then((r) => r.json());
return {
paths: produits.map((produit: { slug: string }) => ({ params: { slug: produit.slug } })),
fallback: 'blocking',
};
};
export const getStaticProps: GetStaticProps<{ produit: Produit }> = async ({ params }) => {
const reponse = await fetch(`https://api.example.com/produits/${params?.slug}`);
if (!reponse.ok) {
return { notFound: true };
}
return { props: { produit: await reponse.json() }, revalidate: 3600 };
};
export default function Page({ produit }: { produit: Produit }) {
return (
<article>
<h1>{produit.nom}</h1>
<p>{produit.description}</p>
<p>{produit.prix} €</p>
</article>
);
}
fallback: 'blocking' server-renders pages missing from the build, and revalidate regenerates them at most once an hour. The trap specific to the Pages Router: a page with neither getStaticProps nor getServerSideProps that fetches its data on the client, in useEffect or with SWR.
Nuxt
Versions Nuxt 3 and 4.
Nuxt uses universal rendering by default: the page is rendered on the server, then hydrated. Check that none of these settings turns it off for critical content: ssr: false in nuxt.config.ts, content wrapped in <ClientOnly>, or a useFetch with the server: false option.
Hybrid rendering sets the mode per route:
// nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/': { prerender: true },
'/blog/**': { isr: 3600 },
'/produits/**': { swr: true },
'/compte/**': { ssr: false },
},
})
Hybrid rendering is not available with nuxt generate: build with nuxt build.
Astro
Versions Astro 5 to 7.
By default, Astro generates static pages at build time: the content is in the HTML. Two directives take it out of the initial HTML: client:only, which skips server rendering of the component, and server:defer, which first sends fallback content and then loads the component afterwards. Keep them for non-critical elements. To render a page on demand, add an adapter and export const prerender = false in the page.
React, Vue, Angular and SvelteKit
- React with Vite (SPA): switch to React Router in framework mode, which can pre-render routes at build time, or migrate the public pages to Next.js.
// react-router.config.ts
import type { Config } from '@react-router/dev/config';
export default {
ssr: true,
prerender: ['/', '/tarifs', '/blog', '/blog/premier-article'],
} satisfies Config;
- Vue (SPA): migrate the public pages to Nuxt, which reuses Vue components.
- Angular:
ng add @angular/ssron an existing project (ng new --ssrfor a new one), then set the mode per route inapp.routes.server.ts:
import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{ path: '', renderMode: RenderMode.Prerender },
{ path: 'blog/:slug', renderMode: RenderMode.Server },
{ path: 'compte/**', renderMode: RenderMode.Client },
{ path: '**', renderMode: RenderMode.Server },
];
- SvelteKit: server-side rendering is on by default. Add
export const prerender = true;in the+page.jsor+layout.jsof static pages, and do not useexport const ssr = false;on a page you want ranked.
Dynamic rendering as a last resort
If migrating is impossible in the short term, a pre-rendering service can serve crawlers an HTML version of the page. It is a workaround, costly to maintain, and it must serve the same content visitors get, otherwise it amounts to cloaking. In that case, list every crawler concerned, including generative engine crawlers, and plan the exit.
Common mistakes
- Moving everything to SSR without a cache: the server renders every page on every request and TTFB climbs. Cache what changes little, or move it to SSG.
- Rendering the text on the server but not the metadata: a title, canonical and JSON-LD added by JavaScript remain invisible to AI crawlers.
- Deferring critical content for performance: a
lazy,client:onlyorssr: falsecomponent disappears from the initial HTML. - Serving a different version to crawlers: dynamic rendering that diverges from the visible content is cloaking.
- Forgetting HTTP status codes: a non-existent page rendered on the server must return
404, not200. See Check SPA HTTP status codes (opens in a new tab). - Not checking again after migration: test each template with curl and with URL Inspection before going live.
Frequently asked questions
Is SSR required to be indexed by Google?
No, server-side rendering is not required for Google, which runs JavaScript during a rendering phase. That rendering does, however, go through a queue and fails if a script or an API does not respond. Google itself recommends server-side rendering or pre-rendering, which are faster for visitors and readable by crawlers that do not run JavaScript, such as those of most generative engines.
SSR or SSG: which one should I choose?
Choose SSG for pages that change little, such as articles, service pages or documentation: the HTML is ready in advance and the server responds quickly. Choose SSR, with a cache, for pages whose data changes often, such as prices or stock levels. In between, incremental regeneration rebuilds static pages at regular intervals.
Does my WordPress or Shopify site need SSR?
No, WordPress and Shopify already generate their pages on the server, in PHP and in Liquid: the main content is in the initial HTML. The risk comes from plugins and apps that load their content with JavaScript after display, such as reviews, tabs or grids with “load more”. Check these blocks with curl and prefer the options that render them on the server.
Is dynamic rendering still a good solution?
No, Google describes dynamic rendering, which serves a pre-rendered version to crawlers only, as a workaround and not a long-term solution. Google recommends server-side rendering, static rendering or hydration. If you use it temporarily, serve exactly the same content as visitors get to avoid cloaking, and include generative engine crawlers in the list.
Resources
- Google Search Central: Understand the JavaScript SEO basicsdevelopers.google.com
- Google Search Central: Dynamic rendering as a workarounddevelopers.google.com
- web.dev: Rendering on the Webweb.dev
- Nuxt: Rendering Modesnuxt.com
- Angular: Server-side and hybrid renderingangular.dev
- Inertia: Server-side renderinginertiajs.com
- Wix: SEO best practices for Velo codedev.wix.com
- Vercel: analysis of AI crawler behavior (December 2024)vercel.com
Updated on
Topic checklist (PDF)