-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate script tags inserted #1290
Comments
I've done some digging and it seems to originate in vite see here |
I would guess this is related to hydration. I don't see it if I view source, but only when inspecting the document with Chrome inspector. @hbirler maybe this would be an interesting test case for you if you're still interested in working on hydration? |
I am not sure this is directly about hydration, since I do not see a hydration function being called with the
So module preload also becomes preload. I don't know why that would happen. |
I see the following in
|
I filed an issue in the Vite tracker for this here: vitejs/vite#4444 |
Describe the bug
I'm noticing duplicate script tags in my SvelteKit app.
To Reproduce
npm init svelte@next
and choose all the defaultsnpm run preview
Inspect head element with Chrome inspector
Diagnostics
npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers
Your browser: Chrome
Your adapter (e.g. Node, static, Vercel, Begin, etc...): Node
Severity
Well I didn't notice it for awhile, so I guess it's not the worst, but it seems like there'd be some performance impact at the very least
The text was updated successfully, but these errors were encountered: