mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
shorten_expanded: remove loading=lazy on the js side instead
This commit is contained in:
@@ -41,6 +41,10 @@ Plugins.Shorten_Expanded = {
|
||||
|
||||
[...row.querySelectorAll("img, video")].forEach((img) => {
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
|
||||
// lazy load breaks our calculations
|
||||
img.removeAttribute('loading');
|
||||
|
||||
img.onload = () => resolve(img);
|
||||
img.onloadeddata = () => resolve(img);
|
||||
img.error = () => reject(new Error("unable to load video"));
|
||||
|
||||
Reference in New Issue
Block a user