Skip to content

Commit

Permalink
Encourage browsers to always start video loading early
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Aug 27, 2024
1 parent c54417a commit 5301b67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/elements/direct-video-player/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const DirectVideoPlayer = (props: {
loop={props.loop ?? true}
muted
playsInline // Required for iOS non-fullscreen playback
preload="auto"

ref={darkVideoRef}

Expand All @@ -116,6 +117,7 @@ export const DirectVideoPlayer = (props: {
loop={props.loop ?? true}
muted
playsInline // Required for iOS non-fullscreen playback
preload="auto"

ref={lightVideoRef}

Expand Down

0 comments on commit 5301b67

Please sign in to comment.