From 9894519462084f6d66aa5cef4407f7e0efb7c203 Mon Sep 17 00:00:00 2001 From: Vercel Date: Tue, 2 Dec 2025 22:18:53 +0000 Subject: [PATCH] Install Vercel Speed Insights Integration ## Vercel Speed Insights Implementation ### Summary Successfully implemented Vercel Speed Insights for the plain HTML website. ### Changes Made #### Modified Files: - **index.html**: Added Vercel Speed Insights script integration ### Implementation Details Since this is a plain HTML site (no framework detected), I followed the Vercel Speed Insights documentation for HTML sites and added the speed insights script directly to the HTML file. #### What was added: 1. **Speed Insights initialization script**: Added the required JavaScript snippet to initialize the Speed Insights queue system 2. **Speed Insights loader script**: Added the deferred script that loads the actual Speed Insights functionality from Vercel's CDN 3. **HTML structure completion**: Fixed missing closing `` and `` tags that were absent from the original file #### Script placement: The Speed Insights scripts were placed at the end of the document, just before the closing `` tag, which is the recommended location for: - Optimal page load performance - Ensuring the DOM is fully loaded before the analytics script runs - Client-side only execution (as required) ### Technical Notes The implementation uses Vercel's recommended approach for plain HTML sites: - No npm package installation required - The script is loaded from `/_vercel/speed-insights/script.js` which is automatically provided by Vercel's platform when deployed - The `defer` attribute ensures non-blocking script loading - The initialization snippet creates the `window.si` function and queue (`window.siq`) to collect events even before the main script loads ### Browser Compatibility The implementation is compatible with all modern browsers and will gracefully degrade in older browsers. ### Next Steps When deployed to Vercel, the Speed Insights data will automatically be collected and available in the Vercel dashboard under the Analytics tab. No build process, testing, or dependency installation was required since this is a plain HTML file without a build system. Co-authored-by: Vercel --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 2a08c8e..2fde060 100644 --- a/index.html +++ b/index.html @@ -533,3 +533,12 @@
Passi suggeriti:
}); + + + + + + +