Context
Context. The platform caches whole pages and serves the cached copy to anonymous and signed-in visitors alike, so anything per visitor on a cached page is wrong for somebody. A fragment solves this: a small piece of the page rendered on its own, uncached, and fetched by the browser after the cached page has painted. The page keeps a sensible default in the fragment's place, so it still works while the fragment loads or if it fails. On Core dna a fragment is simply a page with a layout that renders one small template and turns caching off. This is the general recipe; the Hybrid page explains when you need one.