diff --git a/pfaltgall b/pfaltgall index c3c2205..581df87 100755 --- a/pfaltgall +++ b/pfaltgall @@ -413,30 +413,40 @@ function prel() { pages=Math.round(th/ph), sy=Math.round(md.scrollTop), page=Math.round(pages-(th-sy)/ph)+1, - img, - u; + img; //console.log(ph+" "+th+" "+pages+" "+sy+" "+page); if (page>1) {//current img=document.getElementById("img"+(page-2)); if (img.src==phimgurl) { - u=imgurls[page-2]; - img.src=u; + img.src=imgurls[page-2]; img.loading="eager"; } } if (page2) {//previous img=document.getElementById("img"+(page-3)); if (img.src==phimgurl) { - u=imgurls[page-3]; - img.src=u; + img.src=imgurls[page-3]; + img.loading="eager"; + } + } + if (page+13) {//previous-previous + img=document.getElementById("img"+(page-4)); + if (img.src==phimgurl) { + img.src=imgurls[page-4]; img.loading="eager"; } }