Skip to content

Changed SvelteKit Prefetching#329

Merged
AlexanderKaran merged 1 commit into
mainfrom
svelte-pre-fetching
Jul 23, 2026
Merged

Changed SvelteKit Prefetching#329
AlexanderKaran merged 1 commit into
mainfrom
svelte-pre-fetching

Conversation

@AlexanderKaran

@AlexanderKaran AlexanderKaran commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

SvelteKit's default set-up is to pre-fetch links on hover. Updated App SvelteKit to match this set up and update methodology to make it clear

Part of #199

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying framework-tracker with  Cloudflare Pages  Cloudflare Pages

Latest commit: c0d2abd
Status: ✅  Deploy successful!
Preview URL: https://845c6bee.framework-tracker.pages.dev
Branch Preview URL: https://svelte-pre-fetching.framework-tracker.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
framework-tracker c0d2abd Commit Preview URL

Branch Preview URL
Jul 23 2026, 09:59 AM

%sveltekit.head%
</head>
<body>
<body data-sveltekit-preload-data="hover">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given that is the default should this be included?

@teemingc teemingc Jul 23, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's the default in the sense that it's included in the starter template but should be removed to turn off the default

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the methodology that the normal SSR tests we use the default of the framework for the links. I think this is fairer as we are testing the frameworks themselves.

Nearly every frameworks links default to pre-fetch on hover now

@AlexanderKaran
AlexanderKaran merged commit 47bc434 into main Jul 23, 2026
4 checks passed
@AlexanderKaran
AlexanderKaran deleted the svelte-pre-fetching branch July 23, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants