prefetchingpreloading
Prefetchingpreloading is a term used to describe the coordinated use of two web performance techniques, prefetching and preloading, to load resources before they are needed. Although distinct in behavior, together they form an approach aimed at reducing latency and improving perceived speed by bringing assets into the browser’s cache ahead of time.
Prefetching signals that resources may be needed in the near future. The browser downloads them with lower
Implementation commonly uses HTML link elements: rel="preload" with an as attribute to indicate the resource type
Use cases include preloading critical assets needed for the initial render, such as CSS, fonts, and above-the-fold
Caveats include wasted bandwidth if hints are inaccurate, possible cache pollution, and different browser behaviors. Hints
In practice, this approach is most effective in dynamic sites and progressive web apps where navigation patterns