Skip to content

Commit

Permalink
force preload of video on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkas committed Oct 15, 2024
1 parent 06d7b07 commit f9e6193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function BuildAndRewardSection() {
className="mx-auto p-2 motion-reduce:hidden"
autoPlay={false}
ref={videoRef}
preload="auto"
/>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default function VideoCard({ title, description, src }: VideoCardProps) {
className="mx-auto mt-6 motion-reduce:hidden"
autoPlay={false}
ref={videoRef}
preload="auto"
/>
<Title level={TitleLevel.Title1} className="mb-4">
{title}
Expand Down

0 comments on commit f9e6193

Please sign in to comment.