diff options
| author | 2025-09-23 22:12:44 +0200 | |
|---|---|---|
| committer | 2025-09-23 22:12:44 +0200 | |
| commit | 067479a9f16cb91753acfd1fea5d0a18106e1c44 (patch) | |
| tree | 307ab6250079589f581bd9bd06c4469a876f39eb /p/scripts | |
| parent | 87087e44738f50e062322472d546bc6cc686118b (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/scripts')
| -rw-r--r-- | p/scripts/main.js | 2 |
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 { |
