From a9653fc7c9bed89c5f4c4e01144ad0242f54c38b Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 20 Feb 2022 17:03:57 +0100 Subject: [PATCH] Avoid synchronous fetching for remote embedding documents. --- src/content/staticNS.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/staticNS.js b/src/content/staticNS.js index 0748f21..674e296 100644 --- a/src/content/staticNS.js +++ b/src/content/staticNS.js @@ -115,6 +115,11 @@ } setup(policy); }); + + if (!this.syncFetchPolicy && this.embeddingDocument) { + asyncFetch(); + return; + } debug(`Synchronously fetching policy for ${url}.`); let policy = null; let attempts = 100;