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.
2026-06-04T00:33:10.053Z
Astro 6.x
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)
This component runs entirely on the client with vanilla JavaScript
๐ How Server Islands Work
- Initial Load: The page shell and static content load instantly
- Fallback Display: Server islands show their fallback content (loading skeletons)
- Parallel Fetch: Each island fetches its content independently from the server
- Progressive Hydration: Islands replace fallbacks as data arrives
- 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.