dont do anything if config is off

This commit is contained in:
Barış Soner Uşaklı
2017-04-28 23:09:36 -04:00
parent f3c4d2ebe3
commit 2f3aceb7d3

View File

@@ -28,6 +28,10 @@ define('forum/topic/images', [
clearTimeout(Images._imageLoaderTimeout);
}
if (!config.delayImageLoading) {
return;
}
Images._imageLoaderTimeout = setTimeout(function () {
/*
If threshold is defined, images loaded above this threshold will modify