Skip to content

Commit 9023e2b

Browse files
committed
fix
1 parent 72c8d41 commit 9023e2b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4034,6 +4034,8 @@
40344034
var isrc=img.getAttribute("src");
40354035
var nimg = new Image();
40364036
nimg.src = isrc;
4037+
nimg.style.display="none";
4038+
document.body.appendChild(nimg);
40374039
nimg.onload=function(){
40384040
if (self._dataCache[this.src]) return;
40394041
var result = findPic(this);
@@ -4043,6 +4045,7 @@
40434045
self.loadThumb();
40444046
}
40454047
self._dataCache[this.src] = true;
4048+
document.body.removeChild(nimg);
40464049
};
40474050
});
40484051
if(prefs.gallery.loadAll)self.prePage();
@@ -4109,6 +4112,8 @@
41094112
var isrc=img.getAttribute("src");
41104113
var nimg = new Image();
41114114
nimg.src = isrc;
4115+
nimg.style.display="none";
4116+
document.body.appendChild(nimg);
41124117
nimg.onload=function(){
41134118
if (self._dataCache[this.src]) return;
41144119
var result = findPic(this);
@@ -4118,6 +4123,7 @@
41184123
self.loadThumb();
41194124
}
41204125
self._dataCache[this.src] = true;
4126+
document.body.removeChild(this);
41214127
};
41224128
});
41234129
if(prefs.gallery.loadAll)self.nextPage();

0 commit comments

Comments
 (0)