MediaAttachmentGrid: preload=metadata for videos
This commit is contained in:
parent
b58e2a50e3
commit
7e5692549d
1 changed files with 2 additions and 0 deletions
|
@ -207,6 +207,7 @@ const MediaAttachmentGrid: Component<{
|
||||||
style={style()}
|
style={style()}
|
||||||
data-sort={index}
|
data-sort={index}
|
||||||
data-media-type={item().type}
|
data-media-type={item().type}
|
||||||
|
preload="metadata"
|
||||||
/>
|
/>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={itemType() === "gifv"}>
|
<Match when={itemType() === "gifv"}>
|
||||||
|
@ -222,6 +223,7 @@ const MediaAttachmentGrid: Component<{
|
||||||
style={style()}
|
style={style()}
|
||||||
data-sort={index}
|
data-sort={index}
|
||||||
data-media-type={item().type}
|
data-media-type={item().type}
|
||||||
|
preload="metadata"
|
||||||
/>
|
/>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={itemType() === "audio"}>
|
<Match when={itemType() === "audio"}>
|
||||||
|
|
Loading…
Reference in a new issue