aboutsummaryrefslogtreecommitdiff
path: root/src/components/video_attachment
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-11-19 17:45:15 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-11-19 18:01:21 +0100
commit0089d1e8d1aace0ab801f0cff701fed61106cfee (patch)
tree47f94f376146af03bf3eb4241f7c59ecf4092162 /src/components/video_attachment
parentd770bab1b0e5d543547c59d86aef533f77ceafe2 (diff)
video_attachment: Only preload metadata
This hints browsers that only the metadata and maybe the first few frames are needed. Which avoids downloading the entire video, which isn't really needed in our case.
Diffstat (limited to 'src/components/video_attachment')
-rw-r--r--src/components/video_attachment/video_attachment.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/video_attachment/video_attachment.vue b/src/components/video_attachment/video_attachment.vue
index a4bf01e8..8a3ea1e3 100644
--- a/src/components/video_attachment/video_attachment.vue
+++ b/src/components/video_attachment/video_attachment.vue
@@ -1,6 +1,7 @@
<template>
<video
class="video"
+ preload="metadata"
:src="attachment.url"
:loop="loopVideo"
:controls="controls"