diff options
| author | 2023-12-15 16:50:45 +0700 | |
|---|---|---|
| committer | 2023-12-15 16:50:45 +0700 | |
| commit | b1b1627fb4f97b25b39c4c8522cd121ebd344884 (patch) | |
| tree | 58053331562a233833d8fc344d0fdf7c23c0574c /html.c | |
| parent | format.c: add <bdi> (diff) | |
| download | snac2-b1b1627fb4f97b25b39c4c8522cd121ebd344884.tar.gz snac2-b1b1627fb4f97b25b39c4c8522cd121ebd344884.tar.xz snac2-b1b1627fb4f97b25b39c4c8522cd121ebd344884.zip | |
html.c: media: disable preloading
Signed-off-by: Yonle <yonle@lecturify.net>
Diffstat (limited to 'html.c')
| -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, | |||
| 1657 | if (xs_startswith(t, "video/")) { | 1657 | if (xs_startswith(t, "video/")) { |
| 1658 | xs_html_add(content_attachments, | 1658 | xs_html_add(content_attachments, |
| 1659 | xs_html_tag("video", | 1659 | xs_html_tag("video", |
| 1660 | xs_html_attr("preload", "none"), | ||
| 1660 | xs_html_attr("style", "width: 100%"), | 1661 | xs_html_attr("style", "width: 100%"), |
| 1661 | xs_html_attr("class", "snac-embedded-video"), | 1662 | xs_html_attr("class", "snac-embedded-video"), |
| 1662 | xs_html_attr("controls", NULL), | 1663 | xs_html_attr("controls", NULL), |
| @@ -1671,6 +1672,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, | |||
| 1671 | if (xs_startswith(t, "audio/")) { | 1672 | if (xs_startswith(t, "audio/")) { |
| 1672 | xs_html_add(content_attachments, | 1673 | xs_html_add(content_attachments, |
| 1673 | xs_html_tag("audio", | 1674 | xs_html_tag("audio", |
| 1675 | xs_html_attr("preload", "none"), | ||
| 1674 | xs_html_attr("style", "width: 100%"), | 1676 | xs_html_attr("style", "width: 100%"), |
| 1675 | xs_html_attr("class", "snac-embedded-audio"), | 1677 | xs_html_attr("class", "snac-embedded-audio"), |
| 1676 | xs_html_attr("controls", NULL), | 1678 | xs_html_attr("controls", NULL), |