aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-09-23 22:12:44 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-23 22:12:44 +0200
commit067479a9f16cb91753acfd1fea5d0a18106e1c44 (patch)
tree307ab6250079589f581bd9bd06c4469a876f39eb /p
parent87087e44738f50e062322472d546bc6cc686118b (diff)
Lazy-load `<track src>` (#7997)
Follow-up of #7636 I found it's the only missing element that needs to be lazy loaded by putting HTML of https://github.com/cure53/HTTPLeaks/blob/main/leak.html into a feed
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 06d3609d5..372a86050 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -441,7 +441,7 @@ const freshrssOpenArticleEvent = document.createEvent('Event');
freshrssOpenArticleEvent.initEvent('freshrss:openArticle', true, true);
function loadLazyImages(rootElement) {
- rootElement.querySelectorAll('img[data-original], iframe[data-original], video[data-original]').forEach(function (el) {
+ rootElement.querySelectorAll('img[data-original], iframe[data-original], video[data-original], track[data-original]').forEach(function (el) {
if (el.tagName === 'VIDEO') {
el.poster = el.getAttribute('data-original');
} else {