Re:XSLT – Native, zero-config build system for the Web
by _heimdall on Friday June 27, 2025 @07:02AM
(#44395762)
Prefetching pages doesn't require a frontend framework though. All it takes is a simple script to preload all or specific anchor links on the page, or you could get fancier with a service worker and a site manifest if you want to preload pages that may not be linked on the current page.
[ Parent
| on HN ]
Re:XSLT – Native, zero-config build system for the Web
by chriswarbo on Friday June 27, 2025 @09:08AM
(#44396533)
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
Re:XSLT – Native, zero-config build system for the Web
by _heimdall on Friday June 27, 2025 @09:18AM
(#44396589)
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.