fix: video preload

This commit is contained in:
Yifei Gao 2024-08-14 09:22:11 +08:00
parent af9c05c8b3
commit 79765edee9
No known key found for this signature in database

View file

@ -50,7 +50,7 @@ export default function IndexPage() {
width={1600} width={1600}
alt="an open book with a coding example titled “Including Friction,” featuring code in JavaScript (p5.js) and an screenshot of the sketch in motion." alt="an open book with a coding example titled “Including Friction,” featuring code in JavaScript (p5.js) and an screenshot of the sketch in motion."
/> />
<video playsInline muted preload="none" className="m-0 aspect-video"> <video playsInline muted className="m-0 aspect-video">
<source src="/flipping.mp4" type="video/mp4" /> <source src="/flipping.mp4" type="video/mp4" />
</video> </video>
</Carousel> </Carousel>