Introduction
Introduction Statistics Contact Development Disclaimer Help
fix some lazy image loading for some sites - firefox-fix-web - Firefox extensio…
git clone git://git.codemadness.org/firefox-fix-web
Log
Files
Refs
README
LICENSE
---
commit ff6892788a0e16a4729e66ffeaf32df2f87f9b5a
parent 3e9bf6cd5a5183506d7942d96ca02f8d4b01115c
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 24 Nov 2018 12:28:40 +0100
fix some lazy image loading for some sites
Diffstat:
M extension/global/fiximg.js | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/extension/global/fiximg.js b/extension/global/fiximg.js
@@ -8,4 +8,9 @@
img.src = img.getAttribute("data-original");
img.style.display = null; // reset inline display style
});
+
+ Array.from(document.querySelectorAll("img[data-src]")).map(function(im…
+ img.src = img.getAttribute("data-src");
+ img.style.display = null; // reset inline display style
+ });
})();
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.