Guides rendering strategy selection and optimization for search engine and AI crawler visibility. Golden rule: Page data and metadata must be available on page load without JavaScript execution for optimal SEO.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
MethodWhen HTML generatedSEOBest forSSG (Static Site Generation)Build time✅ BestBlog, docs, marketing pages; content rarely changesSSR (Server-Side Rendering)Request time✅ GoodNews, product pages; dynamic, personalized contentISR (Incremental Static Regeneration)Build + revalidate✅ GoodLarge sites; static with periodic updatesCSR (Client-Side Rendering)Browser (after JS)❌ PoorDashboards, account pages; no SEO neededDynamic renderingOn-demand for bots✅ FallbackSPAs; prerender for crawlers, SPA for users
HTML generated at build time; same HTML for every request. Best for SEO: crawlers receive full HTML immediately; optimal performance.
getStaticProps, Astro, GatsbyHTML generated on each request. Good for SEO: crawlers receive complete HTML; supports dynamic, personalized content.
getServerSideProps, RemixStatic at build; pages can revalidate after a period. Good for SEO: combines static performance with freshness.
revalidate in getStaticPropsServer sends minimal HTML shell; content renders in browser after JS loads. Not for SEO: crawlers may see empty content; indexing delays or failures.
Serve prerendered HTML to crawlers; serve SPA to users. Fallback when full SSR/SSG is not feasible (e.g. legacy SPA migration).
CrawlerJavaScriptContent in initial HTMLGooglebotRenders JS (Chrome); may have multi-day queueFull weight; SSR/SSG preferredAI crawlers (GPTBot, ClaudeBot, PerplexityBot)Do not execute JSRequired—CSR content invisibleBingbotRenders JSSame as Googlebot
AI crawlers: ~28% of Googlebot's crawl volume. Critical content (articles, meta, nav) must be in initial HTML. See site-crawlability for AI crawler optimization; generative-engine-optimization for GEO.
Google does not simulate user clicks (tabs, carousels, "Load more"). Content loaded via AJAX or on interaction is not discoverable.
ComponentRequirementImplementationTabs / AccordionAll tab content in DOM at loadServer-render; use <details>/ <summary> or CSS show/hideCarouselAll slides in initial HTMLServer-render; CSS/JS for show/hide onlyHeroHeadline, CTA, LCP image in HTMLNo JS-only renderingNavigationAll nav links in first paintNo JS-injected menus for critical links
Recommendation: Server-render (SSR/SSG) all critical content; use JS only for interaction (show/hide, animation). Content loaded on click = not indexed.
Content typeRenderingReasonBlog, docs, marketingSSG or ISRBest SEO; fast; staticProduct, news, dynamicSSRFresh content; crawler-readyDashboard, accountCSRNo SEO; auth requiredLegacy SPADynamic renderingBridge until SSR/SSG migration