Explorar o código

load deferred images only when the shadow is enabled

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
51bff25075
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());