A stage time is the same for everyone looking at the programme. The choice to save that performance is personal. Those two facts do not need to take the same journey to a visitor’s phone.
That distinction sits at the centre of our work on Wonderfruit’s Astro website. Prepare shared content ahead of time. Fetch the information that belongs to a particular visitor when they need it.
The title is a little provocative. The actual decision is more practical: which parts of this page need work to happen after someone asks for it?
Keep the CMS in the publishing process
Wonderfruit has artists, venues, activities and a programme that changes. A content management system gives the publishing team a way to maintain that information without changing application code.
Storyblok still has that role in the website. Taking a CMS out of a page’s delivery path does not mean taking it away from the people who need it.
For a prerendered route, Astro fetches the published content during a build. It prepares output that can be served on subsequent visits, without asking the CMS to assemble that content again for each visitor.
This is static site generation, or SSG. The content can change between builds; the generated output is a snapshot. Astro also supports routes rendered on demand, so the choice can be made page by page.1
One programme, many personal schedules
Wonderfruit’s schedule route makes the split concrete. The route opts into prerendering and fetches the published programme from Storyblok. It passes that data to a Solid component.
When the component mounts in the browser, it calls a live schedule service. The response includes the IDs of activities saved for the person whose schedule is being viewed.
The component matches those IDs against the programme it already received. That produces the personal schedule: a selection from shared content, rather than a second copy of the whole programme fetched from the CMS.
The diagram follows that route. It leaves out unrelated pages and services so the boundary between build-time work and a visitor’s request is visible.
Build time — shared content
- Storyblok: published programme
- Astro prerenders the schedule route
- Page shell and programme data
Delivered to the browser ↓
On a visit — personal selection
- Solid component in the browser Requests saved selections
- Live schedule service Returns saved activity IDs
- Personal schedule IDs matched to the programme
There is an important limit here. The generated page is not a finished personal schedule. This implementation shows a loading state until its browser request completes. JavaScript and that live service are still part of the wait.
Prerendering removes a repeated CMS lookup for the programme. It does not remove every dependency from the visitor’s experience.
An interactive page does not need to be a whole SPA
A single-page application, or SPA, handles much of its navigation and interface updating in the browser. SSG describes when output is generated. These are different choices, and they can coexist.
An interactive schedule does not, by itself, require the whole website to behave as one application. Astro’s islands let a page include a component with its own client-side JavaScript.2
The schedule uses client:load, which loads and hydrates the Solid component when the page loads. Other content can remain ordinary HTML where interaction is unnecessary.3
That gives us a useful boundary to work with. We can ask what each component needs, rather than sending application code everywhere because one part of the site needs it.
Freshness is part of the design
A programme correction raises a different question: when will visitors see it?
If a time or venue is part of generated output, editing the CMS alone does not update that output. The change must reach a new build and deployment, or travel through a separate live update path.
A production workflow needs to account for that delay. Who publishes a correction? What tells them it reached the site? What happens if the build fails? These questions belong alongside the rendering decision.
The personal schedule has a similar boundary. A live response can contain the latest saved IDs while the programme supplied to the page still reflects an older build. Live personalisation does not make all of its inputs live.
Static generation is a good fit when the acceptable age of the content and the publishing process agree. Where they do not, an on-demand route or a deliberately live feature may be the better choice.
Measure what the visitor waits for
Moving work to a build changes where the cost is paid. It does not guarantee a fast page.
The generated programme still has to reach the device. Images, fonts and scripts take bytes and time. The browser has to hydrate the component, fetch saved selections and render the result.
For this route, we would measure at least three moments:
- When the page first shows useful content.
- When the visitor’s saved schedule becomes visible.
- When the schedule responds reliably to interaction.
A useful comparison keeps the page, content, device and network conditions consistent. It also distinguishes a first visit from a cached one. A single Lighthouse score cannot explain the whole change.
We are not attaching a speed percentage to this example. The implementation shows where work happens; comparable before-and-after measurements would be needed to show how much faster it made the experience.
Use static where it earns its place
The Wonderfruit codebase combines server rendering with explicitly prerendered routes. The schedule is one example of that mix. There is no need to force every page into the same model.
Account actions and checkout need current services. Programme publishing has its own timing. A personal schedule needs both shared information and a visitor’s selections. Each has a different reason to be live.
The point of going static is to stop repeating work that can be done in advance. Keep the publishing tools people need, and spend the visitor’s waiting time only on work that needs to happen now.