mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-14 02:32:34 +00:00
better solution for #654
This commit is contained in:
parent
6cae6ac238
commit
0a9d355bee
@ -401,10 +401,13 @@ var AboutReaderListener = {
|
||||
// TenFourFox issue 654: defeat lozad.js lazy image loading.
|
||||
Array.forEach(content.document.getElementsByTagName('img'),
|
||||
function(i) {
|
||||
let j;
|
||||
|
||||
try {
|
||||
// Convert data-src to src.
|
||||
if (i.getAttribute("data-src")) {
|
||||
i.src = i.getAttribute("data-src");
|
||||
j = i.getAttribute("data-src");
|
||||
if (j) {
|
||||
i.src = j;
|
||||
i.setAttribute("data-loaded") = "true";
|
||||
}
|
||||
} catch(e) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user