diff options
Diffstat (limited to 'plugins/shorten_expanded')
-rw-r--r-- | plugins/shorten_expanded/init.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/shorten_expanded/init.js b/plugins/shorten_expanded/init.js index d7bd6ef91..1463f9808 100644 --- a/plugins/shorten_expanded/init.js +++ b/plugins/shorten_expanded/init.js @@ -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")); |