diff options
author | Yonle <yonle@lecturify.net> | 2023-12-15 16:50:45 +0700 |
---|---|---|
committer | Yonle <yonle@lecturify.net> | 2023-12-15 16:50:45 +0700 |
commit | b1b1627fb4f97b25b39c4c8522cd121ebd344884 (patch) | |
tree | 58053331562a233833d8fc344d0fdf7c23c0574c | |
parent | a5c740f564f10739174b6b93decae4cfdfc873ac (diff) |
html.c: media: disable preloading
Signed-off-by: Yonle <yonle@lecturify.net>
-rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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), |