Skip to content

chore(docs): optimize demo video.#1567

Merged
igalklebanov merged 10 commits intomasterfrom
optimize-video
Aug 25, 2025
Merged

chore(docs): optimize demo video.#1567
igalklebanov merged 10 commits intomasterfrom
optimize-video

Conversation

@igalklebanov
Copy link
Copy Markdown
Member

@igalklebanov igalklebanov commented Aug 24, 2025

Hey 👋

This PR adds a poster image while the video is loading to improve the experience.
It adds a webm source to the video - ~50% smaller, faster to load.
It aims to improve Largest Contentful Paint (LCP) by setting preload to "none" to prevent blocking initial page load, removing autoPlay and instead loading and playing the video programmatically in a useEffect on mount - which also avoids browser auto play restrictions hopefully.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 24, 2025

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

Project Deployment Preview Comments Updated (UTC)
kysely Ready Ready Preview Comment Aug 25, 2025 0:10am

@igalklebanov igalklebanov added the documentation Improvements or additions to documentation label Aug 24, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 24, 2025

✅ ⏱️ No benchmark changes detected following 18ec58c.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Aug 24, 2025

kysely_koa_example

npm i https://pkg.pr.new/kysely-org/kysely@1567

commit: 18ec58c

@igalklebanov igalklebanov changed the title TBD chore(docs): optimize demo video. Aug 25, 2025
@igalklebanov igalklebanov marked this pull request as ready for review August 25, 2025 00:31
@igalklebanov igalklebanov requested a review from Copilot August 25, 2025 00:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the demo video component and related configurations to improve page load performance and user experience. The changes focus on implementing video loading best practices and fixing React JSX attribute issues.

  • Added programmatic video loading with poster image to improve Largest Contentful Paint (LCP)
  • Fixed JSX attribute naming conventions from HTML to React format
  • Updated GitHub workflow path filters and tolerance settings

Reviewed Changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
site/src/components/DemoVideo.tsx Implements programmatic video loading with useEffect, adds poster image and WebM source
site/src/components/SectionQuotes/Quote.tsx Converts HTML attributes to React JSX format (fillRule, clipRule, stopColor)
site/src/pages/index.tsx Initializes StackBlitz URL state immediately instead of empty string
.github/workflows/preview.yml Changes from paths-ignore to paths filter for workflow triggers
.github/workflows/compare.yml Updates tolerance setting from mixed-better to mixed

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread site/src/components/DemoVideo.tsx
@igalklebanov igalklebanov merged commit efaf313 into master Aug 25, 2025
8 checks passed
@igalklebanov igalklebanov deleted the optimize-video branch August 25, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants