Most sites end up here: the platform renders and caches every page, and JavaScript adds what one visitor needs. The unit starts with the two pieces every hybrid page uses: handing the page's state to the browser in the markup, and one client module that makes every request, carrying the CSRF token for signed-in members.
The middle pages deal with what a cached page cannot hold. Dynamic fragments render the per-visitor part separately; three things always need one, and the cart count is followed end to end. A personalisation bundle loads only when the feature is switched on.
The last two pages keep the result robust and light: a written list of what works without JavaScript, with a test that proves it, and a build split so that each page loads only its own code.