Replies: 1 comment
-
I found a good discussion on this in #1390 |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am very grateful to the developers for the SvelteKit and I like SvelteKit concepts. But some related to hydration performance problems make it not the best choice for me (but I really wish it was).
Example
I have a SvelteKit app like this.
routes/+page.svelte
routes/+page.server.js
svelte.config.js
vite.config.js
package.json
Svelte version: 3.50.1
SvelteKit version: 1.0.0-next.484
Vite version: 3.1.2
Repo with example: https://github.com/mihaon/svelte-issues/tree/6874
Then I execute
npm run build && node build
.When SSR is enabled, the build version of this JS code should in theory only contains something like this:
But actually the build version contains:
And
l(nodes)
is called 500 times on hydration.Can hydration be improved? Does it plan to do so? Thanks for answers.
Beta Was this translation helpful? Give feedback.
All reactions