diff options
author | grunfink <grunfink@noreply.codeberg.org> | 2023-12-15 10:07:13 +0000 |
---|---|---|
committer | grunfink <grunfink@noreply.codeberg.org> | 2023-12-15 10:07:13 +0000 |
commit | 91b656f111762b4b163eda0f4673ded72e23038e (patch) | |
tree | 6144f2261be45832d7d48a87f52497124750910b | |
parent | 3779587861c0fccf74c903de7c4ad5b42c2d6c7f (diff) | |
parent | b1b1627fb4f97b25b39c4c8522cd121ebd344884 (diff) |
Merge pull request 'html.c: media: disable preloading' (#87) from Yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/87
-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), |