From b1b1627fb4f97b25b39c4c8522cd121ebd344884 Mon Sep 17 00:00:00 2001 From: Yonle Date: Fri, 15 Dec 2023 16:50:45 +0700 Subject: [PATCH] html.c: media: disable preloading Signed-off-by: Yonle --- html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html.c b/html.c index 42a4a4e..60e7140 100644 --- a/html.c +++ b/html.c @@ -1657,6 +1657,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, if (xs_startswith(t, "video/")) { xs_html_add(content_attachments, xs_html_tag("video", + xs_html_attr("preload", "none"), xs_html_attr("style", "width: 100%"), xs_html_attr("class", "snac-embedded-video"), xs_html_attr("controls", NULL), @@ -1671,6 +1672,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, if (xs_startswith(t, "audio/")) { xs_html_add(content_attachments, xs_html_tag("audio", + xs_html_attr("preload", "none"), xs_html_attr("style", "width: 100%"), xs_html_attr("class", "snac-embedded-audio"), xs_html_attr("controls", NULL),