Kaynağa Gözat

load deferred images only when the shadow is enabled

Gildas 7 yıl önce
ebeveyn
işleme
51bff25075
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      extension/core/content/content.js

+ 1 - 1
extension/core/content/content.js

@@ -92,7 +92,7 @@ this.singlefile.top = this.singlefile.top || (() => {
 			frameTreePromise.then(() => singlefile.ui.onLoadFrames());
 			preInitializationPromises.push(frameTreePromise);
 		}
-		if (options.lazyLoadImages) {
+		if (options.lazyLoadImages && options.shadowEnabled) {
 			const lazyLoadPromise = lazyLoader.process(options);
 			singlefile.ui.onLoadingDeferResources();
 			lazyLoadPromise.then(() => singlefile.ui.onLoadDeferResources());