|
|
@ -19,8 +19,12 @@ function checkImgs() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function loadImg(el) {
|
|
|
|
function loadImg(el) {
|
|
|
|
var source = el.getAttribute("data-src");
|
|
|
|
var loaded = el.getAttribute("loaded");
|
|
|
|
el.src = source;
|
|
|
|
if (!Boolean(loaded)) {
|
|
|
|
|
|
|
|
var source = el.getAttribute("data-src");
|
|
|
|
|
|
|
|
el.setAttribute("loaded", true);
|
|
|
|
|
|
|
|
el.src = source;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// var mustRun = 500
|
|
|
|
// var mustRun = 500
|
|
|
|
// function throttle(fn, mustRun) {
|
|
|
|
// function throttle(fn, mustRun) {
|
|
|
|