Prerendering
Prerendering is the generation of web-page HTML before it is requested or served, typically as prebuilt files.
Vanilla Web
Static site generation is the process of producing deployable HTML files from templates and content before those files are served to users.
- How it is used
- Produces route-specific HTML before deployment for public content that can be known ahead of requests.
- How deep it goes
- Defines the build-and-serve model and gives a small-script workflow and generator-selection checks, without detailing a complete build implementation.
- Examples
- Uses documentation, blogs, marketing pages, and product catalogs as candidates, plus a shell-only SPA as a routing contrast.
- What you can do after
- Build it from scratch with a content-reading template script, or evaluate generators by their HTML output and deployment portability.
Fast by Default
Static site generation creates web pages ahead of requests so they can be served as pre-rendered HTML.
- How it is used
- Serves rarely changing, non-personalized pages with minimal request-time work.
- How deep it goes
- Explains selection criteria and delivery benefits but stops short of build configuration or deployment procedures.
- Examples
- Uses documentation sites, marketing pages, search boxes, and signup forms as examples.
- What you can do after
- Apply it via Astro, Hugo, or Next.js static export for suitable pages.
Modern Angular
Static site generation is the process of producing web pages as prebuilt files before deployment rather than generating them for each request.
- How it is used
- Uses build-time rendering for mostly static Angular pages that can be deployed and served without per-request generation.
- How deep it goes
- Explains route discovery, configuration, build output, deployment, and host fallbacks, while deferring server-specific configuration details.
- Examples
- Demonstrates an HRMS promotional site with about-us and subscriptions routes, generated browser artifacts, and an optional routes file.
- What you can do after
- Operate/configure Angular prerendering, build static HTML with ng build, and deploy the resulting browser artifacts.
Pro Angular 16
Prerendering is the generation of an application's HTML documents before they are sent to browsers, before client-side JavaScript executes.
- How it is used
- Reduces the empty-screen wait during application startup by serving HTML while JavaScript downloads.
- How deep it goes
- Defines static route documents generated once, contrasts them with per-request SSR, and notes that snapshots miss later shared-state changes.
- Examples
- Demonstrates an Angular application prerendered with `npm run prerender`, served over HTTP, and tested with JavaScript disabled or a slow network.
- What you can do after
- Operate an Angular prerender workflow by generating static files and serving them with a separate HTTP server.
Acing the Frontend Interview
Static site generation produces web pages ahead of request time so they can be served as prebuilt files.
- How it is used
- Compares rendering strategies when discussing React routing and frameworks for scalable applications.
- How deep it goes
- Illustrates a posts page that fetches data before rendering, but leaves generation mechanics unspecified.
- Examples
- Shows a posts page awaiting fetchPosts() and rendering the returned data through a Posts component.
- What you can do after
- Evaluate static site generation alongside other rendering strategies when comparing frameworks.
Read how Acing the Frontend Interview explains prerendering →
Also covered in
- Build AI-Enhanced Web Apps
- Web Component Development with Modern Libraries and ToolingIn early access (MEAP)
What to know first
- search engine optimizationSearch engine optimization is the practice of improving online content and structure so search engines can discover, interpret, and rank it prominently.
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- routingRouting is the process of directing an item, request, or task to a destination or processing path according to relevant rules or characteristics.
Related concepts
- HTMLproduces · HTML is the standard markup language for structuring content and elements in documents on the web.
- server-side renderingalternative to · A web-rendering technique in which a server generates a user interface’s markup or other rendered representation before delivering it to a client.
- angular.jsonconfigured by · angular.json is the Angular CLI workspace configuration file that defines project settings and command configurations.
- frameworkcontrasts with · A software framework is a reusable foundation of components, conventions, and supporting mechanisms that structures application development and provides common functionality and extension points.
- incremental static regenerationused by · Incremental static regeneration is a static-generation technique that regenerates previously generated pages after deployment as content changes, periodically or on request.
- static HTML representationproduces · A static HTML representation is an HTML rendering of an application that can be served without dynamically executing the application first.
Questions about prerendering
What is prerendering?
Prerendering is the generation of web-page HTML before it is requested or served, typically as prebuilt files.
Which Manning books explain prerendering?
Vanilla Web, Fast by Default, Modern Angular, Pro Angular 16 and Acing the Frontend Interview.
What should I know before learning prerendering?
Manning books that teach prerendering usually introduce search engine optimization, HTML, JavaScript and routing first.
What is the difference between prerendering and server-side rendering?
Prerendering is the generation of web-page HTML before it is requested or served, typically as prebuilt files. A web-rendering technique in which a server generates a user interface’s markup or other rendered representation before delivering it to a client.
What is prerendering also called?
Prerendering is also called static site generation.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




