...

/

Prefetching & Preloading Resources

Prefetching & Preloading Resources

Prefetching assets and DNS prefetching can help improve the overall user experience of a website. Let's learn about how prefetching works.

Prefetching something is requesting it ahead of time. A good analogy would be ordering extra pizza for a birthday party in case some extra guests choose to show up. The pizza may eventually not be needed, but you still have it just in case. That’s exactly how prefetching works on websites. There are a few kinds of prefetching. Let’s discuss each.

Asset / link prefetching

Assets that may eventually be needed can be preloaded using the HTML ...