Skip to content

Enable Vercel Speed Insights Integration#2

Merged
joenb33 merged 1 commit into
mainfrom
vercel/enable-vercel-speed-insights-i-l47y1h
Feb 21, 2026
Merged

Enable Vercel Speed Insights Integration#2
joenb33 merged 1 commit into
mainfrom
vercel/enable-vercel-speed-insights-i-l47y1h

Conversation

@vercel

@vercel vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Vercel Speed Insights Implementation

Summary

Successfully implemented Vercel Speed Insights for the Bottled project. This is a static HTML website that already had Vercel Analytics integrated.

Changes Made

Added Speed Insights to All HTML Pages

Added the required Speed Insights script tags to all 6 HTML files in the project:

  1. public/index.html - Home page
  2. public/about.html - About page
  3. public/read.html - Find a bottle page
  4. public/write.html - Throw a bottle page
  5. public/status.html - Bottle status page
  6. public/admin.html - Admin panel

Implementation Details

For each HTML file, I added the following code before the closing </body> tag, right after the existing Vercel Analytics script:

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

This follows the HTML implementation pattern from the Vercel Speed Insights documentation, which does not require installing the @vercel/speed-insights package for static HTML projects.

Why This Approach

  • Framework: This is a static HTML project (not React, Next.js, Vue, etc.)
  • No Package Installation: Per Vercel's documentation, HTML implementations don't need the @vercel/speed-insights npm package
  • Script Location: Scripts are placed before </body> to ensure proper loading after page content
  • Consistent Pattern: Maintained consistency with the existing Vercel Analytics implementation

Next Steps

Once deployed to Vercel with Speed Insights enabled in the dashboard:

  1. The /_vercel/speed-insights/script.js route will be automatically available
  2. Performance metrics (Core Web Vitals) will begin collecting after user visits
  3. Data can be viewed in the Vercel dashboard under the Speed Insights tab

Files Modified

  • public/about.html
  • public/admin.html
  • public/index.html
  • public/read.html
  • public/status.html
  • public/write.html

All changes are source code only - no build artifacts, dependencies, or lock files were modified since this is a static HTML project with no package dependencies for Speed Insights.


View Project · Speed Insights

Created by joenb33 with Vercel Agent

# Vercel Speed Insights Implementation

## Summary
Successfully implemented Vercel Speed Insights for the Bottled project. This is a static HTML website that already had Vercel Analytics integrated.

## Changes Made

### Added Speed Insights to All HTML Pages
Added the required Speed Insights script tags to all 6 HTML files in the project:

1. **public/index.html** - Home page
2. **public/about.html** - About page
3. **public/read.html** - Find a bottle page
4. **public/write.html** - Throw a bottle page
5. **public/status.html** - Bottle status page
6. **public/admin.html** - Admin panel

### Implementation Details
For each HTML file, I added the following code before the closing `</body>` tag, right after the existing Vercel Analytics script:

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

This follows the HTML implementation pattern from the Vercel Speed Insights documentation, which does not require installing the `@vercel/speed-insights` package for static HTML projects.

## Why This Approach
- **Framework**: This is a static HTML project (not React, Next.js, Vue, etc.)
- **No Package Installation**: Per Vercel's documentation, HTML implementations don't need the `@vercel/speed-insights` npm package
- **Script Location**: Scripts are placed before `</body>` to ensure proper loading after page content
- **Consistent Pattern**: Maintained consistency with the existing Vercel Analytics implementation

## Next Steps
Once deployed to Vercel with Speed Insights enabled in the dashboard:
1. The `/_vercel/speed-insights/script.js` route will be automatically available
2. Performance metrics (Core Web Vitals) will begin collecting after user visits
3. Data can be viewed in the Vercel dashboard under the Speed Insights tab

## Files Modified
- public/about.html
- public/admin.html
- public/index.html
- public/read.html
- public/status.html
- public/write.html

All changes are source code only - no build artifacts, dependencies, or lock files were modified since this is a static HTML project with no package dependencies for Speed Insights.

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

vercel Bot commented Feb 21, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Deployment Actions Updated (UTC)
bottled Ready Ready Preview, Comment Feb 21, 2026 11:56pm

@joenb33
joenb33 marked this pull request as ready for review February 21, 2026 23:56
@joenb33
joenb33 merged commit f382a42 into main Feb 21, 2026
3 checks passed
@joenb33
joenb33 deleted the vercel/enable-vercel-speed-insights-i-l47y1h branch February 22, 2026 00:14
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