BLAZOR / .NET 10 / INTERACTIVE AUTO

One page. Two runtimes.
No database.

Explore what runs on the server, what runs in your browser, and when JavaScript can join in.

All visitor records are fictional. This demo generates 48 repeatable samples locally. It doesn't record your visits or create a visitor cookie.

Current renderer

Static

Prerendered HTML; controls are waiting

Data generated by

Static

Included in the initial HTML

Service calls

1

Persisted with the data across prerendering

Browser JavaScript

Waiting

Imported after the first interactive render

Try it in this runtime

Click Run C# to see where the event executes.

JavaScript always executes in the browser. With Server interactivity, C# reaches it over the circuit; with WebAssembly, C# runs alongside it in the browser. These diagnostics are displayed only here.

FICTIONAL SAMPLE / 1 OCTOBER 2026 / UTC

Visitor sample

48 of 48 records

Filter the sample and its summaries

Read the lifecycle

  1. Prerender. A full page request produces HTML on the server. The mock data and counters are serialized with [PersistentState]. JavaScript isn't available yet.
  2. Become interactive. Auto chooses Server or WebAssembly. The component restores the sample instead of fetching it again, then rebuilds the filtered summaries. OnAfterRenderAsync imports the JavaScript module.
  3. Interact. The C# counter and filters execute in the renderer shown above. Reloading samples calls the same mock service in that runtime, without an API request.
  4. Visit again. After the WebAssembly bundle is downloaded and cached, a new page load can use WebAssembly. An existing Server component does not switch runtimes mid-session.

Open this page in a fresh browser profile to observe the first visit. Wait for the framework downloads to finish, then use a full reload to test the cached visit. Auto can retain the runtime already in use by other interactive components.

Navigate home

Navigation inside this site's interactive router normally reuses its runtime and skips a new page prerender. This differs from enhanced navigation in static SSR, which fetches HTML from the server. Neither is a reliable count of unique visitors.

Microsoft: render modes · Prerendered state persistence

An unhandled error has occurred. Reload

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.