Comment

Comment by technojunkie

This article is a good reminder of another one from late last year: https://csswizardry.com/2024/12/a-layered-approach-to-specul...

In the above article, Harry gives a more nuanced and specific method using data attributes to target specific anchors in the document, one reason being you don't need to prerender login or logout pages.

<a href data-prefetch>Prefetched Link</a>

<a href data-prefetch=prerender>Prerendered Link</a>

<a href data-prefetch=false>Untouched Link</a>

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton