From 0089d1e8d1aace0ab801f0cff701fed61106cfee Mon Sep 17 00:00:00 2001
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
Date: Thu, 19 Nov 2020 17:45:15 +0100
Subject: 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.
---
 src/components/video_attachment/video_attachment.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/components/video_attachment/video_attachment.vue')

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"
-- 
cgit v1.2.3-70-g09d2

