From 7e5692549d94c8da3ad73483c25e2c3e4a6ca7a0 Mon Sep 17 00:00:00 2001 From: thislight Date: Thu, 21 Nov 2024 23:35:56 +0800 Subject: [PATCH] MediaAttachmentGrid: preload=metadata for videos --- src/timelines/MediaAttachmentGrid.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/timelines/MediaAttachmentGrid.tsx b/src/timelines/MediaAttachmentGrid.tsx index 8fd14e3..65097b8 100644 --- a/src/timelines/MediaAttachmentGrid.tsx +++ b/src/timelines/MediaAttachmentGrid.tsx @@ -207,6 +207,7 @@ const MediaAttachmentGrid: Component<{ style={style()} data-sort={index} data-media-type={item().type} + preload="metadata" /> @@ -222,6 +223,7 @@ const MediaAttachmentGrid: Component<{ style={style()} data-sort={index} data-media-type={item().type} + preload="metadata" />