From: Ardis Lu Date: Thu, 23 Feb 2023 03:56:41 +0000 (-0800) Subject: Move blocking template load to bottom X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=a9adc905e777f5588b85c397861c6931293d6a6c;p=static-encrypt Move blocking template load to bottom --- diff --git a/index.html b/index.html index 423a7e8..35caf7c 100644 --- a/index.html +++ b/index.html @@ -194,7 +194,6 @@ a.click(); } - const template = await fetch('/template.html').then(r => r.text()); document.querySelector('form').addEventListener('submit', async e => { e.preventDefault(); @@ -213,6 +212,8 @@ const output = template.replace('
SCRIPT INJECTION
', scriptInjection); downloadHtml(output, `${Date.now()}.html`); }) + + const template = await fetch('/template.html').then(r => r.text());