logoalt Hacker News

chriswarboyesterday at 1:08 PM1 replyview on HN

It shouldn't need any scripts https://en.wikipedia.org/wiki/Link_prefetching

It can also be imposed by the client, e.g. via a https://en.wikipedia.org/wiki/Web_accelerator


Replies

_heimdallyesterday at 1:18 PM

Yep, that works as well. I'll reach for a script still if I want more logic around when to prefetch, like only prefetching on link hover or focus. A script is also needed for any links that you need to preload but aren't included on the current page.