Skip to content

Conversation

@vercel
Copy link

@vercel vercel bot commented Jan 8, 2026

Vercel Speed Insights Implementation

Summary

Successfully implemented Vercel Speed Insights tracking on the portfolio website as requested in the user guide.

Project Type

This is a static HTML portfolio website (not a Node.js/npm project). The project uses vanilla HTML, CSS, and JavaScript with no build system or package manager.

Changes Made

Modified Files:

  • index.html - Added Vercel Speed Insights tracking scripts

Implementation Details

What was added to index.html:

Added the following scripts before the closing </body> tag (lines 309-311):

<!-- Vercel Speed Insights -->
<script>
  window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
</script>
<script defer src="/_vercel/speed-insights/script.js"></script>

Technical Decisions

  1. HTML Implementation: Since this is a static HTML website without a build system, I followed the "HTML" implementation path from the Vercel Speed Insights guide, which requires adding simple script tags directly to the HTML file.

  2. Script Placement: The scripts were added before the closing </body> tag, as recommended in the guide. This ensures all page content loads before the Speed Insights tracking script initializes.

  3. No Package Installation: Unlike framework-based implementations (Next.js, React, Vue, etc.), the HTML implementation does not require installing the @vercel/speed-insights package. The tracking is handled entirely by the /_vercel/speed-insights/script.js endpoint.

Prerequisites Met

The implementation assumes the following prerequisites from the Vercel Speed Insights guide have been completed:

  • ✓ Vercel account created
  • ✓ Project created on Vercel
  • ✓ Speed Insights enabled in Vercel dashboard

Next Steps

After deployment to Vercel:

  1. The /_vercel/speed-insights/script.js endpoint will be automatically available
  2. Speed Insights will begin tracking performance metrics once users visit the site
  3. Performance data will be available in the Vercel dashboard under the Speed Insights tab

Verification

  • HTML structure validated
  • Scripts correctly placed before closing body tag
  • Speed Insights initialization function added
  • Speed Insights script endpoint configured correctly

View Project · Speed Insights

Created by leonardo carvalho (devleocarvalho) with Vercel Agent

## Vercel Speed Insights Implementation

### Summary
Successfully implemented Vercel Speed Insights tracking on the portfolio website as requested in the user guide.

### Project Type
This is a **static HTML portfolio website** (not a Node.js/npm project). The project uses vanilla HTML, CSS, and JavaScript with no build system or package manager.

### Changes Made

**Modified Files:**
- `index.html` - Added Vercel Speed Insights tracking scripts

### Implementation Details

#### What was added to `index.html`:
Added the following scripts before the closing `</body>` tag (lines 309-311):

```html
<!-- Vercel Speed Insights -->
<script>
  window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
</script>
<script defer src="/_vercel/speed-insights/script.js"></script>
```

### Technical Decisions

1. **HTML Implementation**: Since this is a static HTML website without a build system, I followed the "HTML" implementation path from the Vercel Speed Insights guide, which requires adding simple script tags directly to the HTML file.

2. **Script Placement**: The scripts were added before the closing `</body>` tag, as recommended in the guide. This ensures all page content loads before the Speed Insights tracking script initializes.

3. **No Package Installation**: Unlike framework-based implementations (Next.js, React, Vue, etc.), the HTML implementation does not require installing the `@vercel/speed-insights` package. The tracking is handled entirely by the `/_vercel/speed-insights/script.js` endpoint.

### Prerequisites Met
The implementation assumes the following prerequisites from the Vercel Speed Insights guide have been completed:
- ✓ Vercel account created
- ✓ Project created on Vercel
- ✓ Speed Insights enabled in Vercel dashboard

### Next Steps
After deployment to Vercel:
1. The `/_vercel/speed-insights/script.js` endpoint will be automatically available
2. Speed Insights will begin tracking performance metrics once users visit the site
3. Performance data will be available in the Vercel dashboard under the Speed Insights tab

### Verification
- HTML structure validated
- Scripts correctly placed before closing body tag
- Speed Insights initialization function added
- Speed Insights script endpoint configured correctly

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Author

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
portifolio Ready Ready Preview, Comment Jan 8, 2026 6:52pm

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

Successfully merging this pull request may close these issues.

1 participant