MediaAttachmentGrid: preload=metadata for videos

This commit is contained in:
thislight 2024-11-21 23:35:56 +08:00
parent b58e2a50e3
commit 7e5692549d
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -207,6 +207,7 @@ const MediaAttachmentGrid: Component<{
style={style()}
data-sort={index}
data-media-type={item().type}
preload="metadata"
/>
</Match>
<Match when={itemType() === "gifv"}>
@ -222,6 +223,7 @@ const MediaAttachmentGrid: Component<{
style={style()}
data-sort={index}
data-media-type={item().type}
preload="metadata"
/>
</Match>
<Match when={itemType() === "audio"}>