Skip to content
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

SvelteKit: /_vercel/speed-insights/script.js script is inside the head tag instead of the body tag #93

Open
weebao opened this issue Jan 4, 2025 · 0 comments

Comments

@weebao
Copy link

weebao commented Jan 4, 2025

I followed the instructions and have my routes/+layout.ts file as below:

import { dev } from "$app/environment";
import { injectAnalytics } from "@vercel/analytics/sveltekit";
import { injectSpeedInsights } from "@vercel/speed-insights/sveltekit";

injectAnalytics({ mode: dev ? "development" : "production" });
injectSpeedInsights();

The description said that I should expect the script to be inside the body tag, but when I checked, it's still in the head tag along with analytics script.

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

No branches or pull requests

1 participant