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.
This commit is contained in:
Haelwenn (lanodan) Monnier 2020-11-19 17:45:15 +01:00
parent d770bab1b0
commit 0089d1e8d1
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<video <video
class="video" class="video"
preload="metadata"
:src="attachment.url" :src="attachment.url"
:loop="loopVideo" :loop="loopVideo"
:controls="controls" :controls="controls"