Skip to content

Install and configure Vercel Speed Insights#76

Merged
yakew7 merged 1 commit into
mainfrom
vercel/install-and-configure-vercel-s-ldcrut
Jul 17, 2026
Merged

Install and configure Vercel Speed Insights#76
yakew7 merged 1 commit into
mainfrom
vercel/install-and-configure-vercel-s-ldcrut

Conversation

@vercel

@vercel vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Implemented Vercel Speed Insights for this project.

What was implemented:

Added Vercel Speed Insights script to all HTML files:

  • index.html (main landing page)
  • explainer.html (explainers page)
  • profiler.html (profiler tool page)

Changes made:

For each HTML file, added the Speed Insights initialization and script tag in the <head> section:

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

These scripts were placed immediately after the existing Vercel Analytics script (/_vercel/insights/script.js) and before the Umami analytics script.

Implementation approach:

  1. Fetched the latest documentation from https://vercel.com/docs/speed-insights/quickstart to ensure up-to-date installation instructions
  2. Identified the project type: This is a static HTML website (not a React/Next.js app) deployed on Vercel
  3. Used the vanilla HTML implementation: Following the documentation, added the Speed Insights script tags to the head section of each HTML page
  4. Preserved existing code structure: The Speed Insights scripts were inserted alongside the existing Vercel Analytics without modifying any other code

How Speed Insights works:

  • Speed Insights monitors Core Web Vitals and performance metrics
  • Different from Analytics: While the project already had Vercel Analytics for visitor tracking, Speed Insights specifically focuses on performance monitoring (LCP, FID, CLS, etc.)
  • The script path /_vercel/speed-insights/script.js is automatically served by Vercel after deployment

Next steps:

  1. Enable Speed Insights in the Vercel dashboard (if not already enabled)
  2. Deploy the changes to Vercel
  3. Once deployed and users visit the site, performance metrics will start appearing in the Vercel dashboard under Speed Insights

Notes:

  • No package.json or npm dependencies were needed since this is a static HTML site
  • The Speed Insights script uses a deferred loading pattern to avoid blocking page rendering
  • The implementation follows Vercel's official documentation for vanilla HTML/JavaScript projects

View Project · Speed Insights

Created by yashkewlani2020-1304 with Vercel Agent

Implemented Vercel Speed Insights for this project.

## What was implemented:

### Added Vercel Speed Insights script to all HTML files:
- index.html (main landing page)
- explainer.html (explainers page)
- profiler.html (profiler tool page)

### Changes made:
For each HTML file, added the Speed Insights initialization and script tag in the `<head>` section:

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

These scripts were placed immediately after the existing Vercel Analytics script (`/_vercel/insights/script.js`) and before the Umami analytics script.

## Implementation approach:

1. **Fetched the latest documentation** from https://vercel.com/docs/speed-insights/quickstart to ensure up-to-date installation instructions
2. **Identified the project type**: This is a static HTML website (not a React/Next.js app) deployed on Vercel
3. **Used the vanilla HTML implementation**: Following the documentation, added the Speed Insights script tags to the head section of each HTML page
4. **Preserved existing code structure**: The Speed Insights scripts were inserted alongside the existing Vercel Analytics without modifying any other code

## How Speed Insights works:

- **Speed Insights** monitors Core Web Vitals and performance metrics
- **Different from Analytics**: While the project already had Vercel Analytics for visitor tracking, Speed Insights specifically focuses on performance monitoring (LCP, FID, CLS, etc.)
- The script path `/_vercel/speed-insights/script.js` is automatically served by Vercel after deployment

## Next steps:

1. Enable Speed Insights in the Vercel dashboard (if not already enabled)
2. Deploy the changes to Vercel
3. Once deployed and users visit the site, performance metrics will start appearing in the Vercel dashboard under Speed Insights

## Notes:

- No package.json or npm dependencies were needed since this is a static HTML site
- The Speed Insights script uses a deferred loading pattern to avoid blocking page rendering
- The implementation follows Vercel's official documentation for vanilla HTML/JavaScript projects

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

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Deployment Actions Updated (UTC)
fair-code Ready Ready Preview, Comment Jul 17, 2026 12:41pm

@github-actions

Copy link
Copy Markdown

Hey @vercel[bot], your first PR on Fair Code, that's awesome, thank you.

This project is about making AI more accountable, and contributions like yours are what keep that work going. We'll review your changes shortly.

If you haven't already, give the contributing guide a quick read: it covers how audits are structured and what we look for in a review.

@yakew7
yakew7 marked this pull request as ready for review July 17, 2026 12:43
@yakew7
yakew7 merged commit 8da611f into main Jul 17, 2026
11 checks passed
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