Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

49

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Prefetch and Other Anchor Options

In this video, we will take a look at pre-loading. With this feature, we can pre-fetch data on pages when hovering their links before we even go to them.

Downloads

Become a pro to download code and videos

Comments

S

about 2 months ago [edited]

It looks like SvelteKit now has a dedicated "sveltekit:reload" attribute that can be used in lieu of rel="external" (which does have some semantic meaning outside of Svelte.)

Andrey

12 months ago

It looks like prefetch breaks when switching between the "Goodbye" and "Hello World" pages—this happens for me locally and at around 3:25 in the video. Is there a fix for this?

Barry Michael Doyle

8 months ago

Are you referring to the fact that it doesn't reactively change when trying to switch between the two?

If this is the case, you can solve it by updating your "[slug].svelte" file.

Change

<Post />

to

<svelte:component this={Post} />

Want to join the conversation?

Become a Pro member today!