Server Islands Test Page

Demonstrating Astro 6.x Server Islands on Cloudflare Workers

โ† Back to Home

๐Ÿ“„ Static Content (Prerendered)

This section is completely static and was rendered at build time. It's the same for every visitor and can be cached aggressively.

Build Time:

2026-06-04T00:33:10.053Z

Framework:

Astro 6.x

Platform:

Cloudflare Workers

๐Ÿ๏ธ Server Islands (On-Demand Rendered)

These components use server:defer and are fetched independently after the initial page load. Each island loads at its own pace.

Loading server time...

Loading user session...

Loading random quote...

๐Ÿ“Š Static Stats Section

This card is static - it was rendered at build time alongside the page shell.

4

Server Islands

1

Client Component

๐Ÿ—„๏ธ Database (Prisma Server Island)

This server island fetches data from a Prisma Postgres database. Real database queries executed at the edge via Cloudflare Workers.

Loading database posts...

โšก Client-Side Interactive

This component runs entirely in the browser with JavaScript. It's interactive immediately after the page loads - no server roundtrip needed.

๐Ÿ–ฑ๏ธ Interactive Counter (Client-Side)

0

This component runs entirely on the client with vanilla JavaScript

๐Ÿ” How Server Islands Work

  1. Initial Load: The page shell and static content load instantly
  2. Fallback Display: Server islands show their fallback content (loading skeletons)
  3. Parallel Fetch: Each island fetches its content independently from the server
  4. Progressive Hydration: Islands replace fallbacks as data arrives
  5. Client Interactivity: Client-side components are interactive throughout

๐Ÿ’ก Tip: Open DevTools Network tab and refresh to see the individual /_server-islands/* requests for each deferred component.

๐Ÿงช Test Actions

๐Ÿ  Go Home