Node adapter: Preload all routes on start for faster initial load #10033
Unanswered
DePasqualeOrg
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You can either preload the code via https://kit.svelte.dev/docs/modules#$app-navigation-preloadcode |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running SvelteKit with the Node adapter, and I've noticed that the initial load of each route can be slow, especially when it uses heavy modules like Prisma. Is there a way to preload all of these routes when the app runs to speed up the initial load? So far the only solution I've been able to find is to load each of these routes with curl on the server just after running the app.
Beta Was this translation helpful? Give feedback.
All reactions