Explorar o código

call function a bit later

Gildas %!s(int64=2) %!d(string=hai) anos
pai
achega
1b670ac1af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/content/content.js

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

@@ -176,7 +176,7 @@ async function processPage(options) {
 		if (!options.removeFrames && frames && globalThis.frames) {
 			let frameTreePromise;
 			if (options.loadDeferredImages) {
-				frameTreePromise = new Promise(resolve => globalThis.setTimeout(() => resolve(frames.getAsync(options)), options.loadDeferredImagesBeforeFrames ? 0 : options.loadDeferredImagesMaxIdleTime / 2));
+				frameTreePromise = new Promise(resolve => globalThis.setTimeout(() => resolve(frames.getAsync(options)), options.loadDeferredImagesBeforeFrames ? 0 : options.loadDeferredImagesMaxIdleTime * .75));
 			} else {
 				frameTreePromise = frames.getAsync(options);
 			}