diff options
| author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-11-19 17:45:15 +0100 |
|---|---|---|
| committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-11-19 18:01:21 +0100 |
| commit | 0089d1e8d1aace0ab801f0cff701fed61106cfee (patch) | |
| tree | 47f94f376146af03bf3eb4241f7c59ecf4092162 | |
| parent | d770bab1b0e5d543547c59d86aef533f77ceafe2 (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.
| -rw-r--r-- | src/components/video_attachment/video_attachment.vue | 1 |
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" |
