0089d1e8d1
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.
16 lines
331 B
Vue
16 lines
331 B
Vue
<template>
|
|
<video
|
|
class="video"
|
|
preload="metadata"
|
|
:src="attachment.url"
|
|
:loop="loopVideo"
|
|
:controls="controls"
|
|
:alt="attachment.description"
|
|
:title="attachment.description"
|
|
playsinline
|
|
@playing="onPlaying"
|
|
@pause="onPaused"
|
|
/>
|
|
</template>
|
|
|
|
<script src="./video_attachment.js"></script>
|