From 8f581ff561bc472be9afe2581883dc2ca3acba9f Mon Sep 17 00:00:00 2001 From: Vercel Date: Tue, 10 Mar 2026 21:49:40 +0000 Subject: [PATCH] Enable Vercel Speed Insights tracking # Vercel Speed Insights Implementation ## Summary Successfully implemented Vercel Speed Insights for the HTML-based project following the official Vercel documentation. ## Changes Made ### Modified Files - **index.html** - Added Vercel Speed Insights script tags ## Implementation Details According to the Vercel Speed Insights guide for HTML projects, I added the required script tags before the closing `` tag: 1. **Initialization Script**: Added the `window.si` initialization function that queues Speed Insights calls 2. **Tracking Script**: Added the deferred loading of the Speed Insights script from `/_vercel/speed-insights/script.js` ## Additional Fixes The original `index.html` file was missing closing `` and `` tags. These have been added to ensure proper HTML structure along with the Speed Insights implementation. ## Code Added ```html ``` ## Next Steps Once deployed to Vercel with Speed Insights enabled: 1. The `/_vercel/speed-insights/*` routes will be automatically added 2. Performance metrics will start being collected 3. Data can be viewed in the Vercel dashboard under the Speed Insights tab ## Notes - No package installation was required for the HTML implementation - The scripts are loaded with the `defer` attribute to avoid blocking page rendering - Speed Insights will only function when deployed to Vercel with the feature enabled in the project settings Co-authored-by: Vercel --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 2a08c8e..8ac0ef5 100644 --- a/index.html +++ b/index.html @@ -533,3 +533,11 @@
Passi suggeriti:
}); + + + + + +