From a9adc905e777f5588b85c397861c6931293d6a6c Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 22 Feb 2023 19:56:41 -0800 Subject: [PATCH] Move blocking template load to bottom --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 2.47.3