Skip to content

Commit 020c425

Browse files
committed
Explicitly load videos
In some cases the browser won't begin loading when the src attribute is set. We'll call load() to ensure that the intention to preload the video is explicit.
1 parent 446f5a8 commit 020c425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PxLoaderVideo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function PxLoaderVideo(url, tags, priority) {
5353
self.bind('error', onError);
5454

5555
self.vid.src = url;
56+
self.vid.load();
5657
};
5758

5859
// called by PxLoader to check status of video (fallback in case

0 commit comments

Comments
 (0)