Concept Flow - Prefetching and preloading
Page Loads
Detect Links to Other Pages
Prefetch Resources in Background
User Hovers or Nears Link
Load Prefetched Data Quickly
User Clicks Link
Render New Page Instantly
Preloading
Identify Critical Resources
Load Resources Early
Use Resources Immediately When Needed
When a page loads, Astro detects links and prefetches their resources quietly in the background. If the user hovers or approaches a link, the prefetched data loads fast, making navigation instant. Preloading loads critical resources early so they are ready when needed.
