Skip to content

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

@weebao

Description

@weebao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions