From 054dd484a5a3d3cad48e62de082b4d757d9320b3 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 27 Aug 2024 11:01:05 -0700 Subject: [PATCH] Ahh beans, don't block the page JS on the analytics script The analytics service is down rn for reasons I haven't had time to investigate, and oops, using the `defer` attribute *does* defer the script until the page has loaded, but it *also* maintains the ordering. I could also use `async` here, but I don't know enough about the Plausible script to know if it cares about the DOM being loaded. Instead, I'll keep it the same, but move it after the Next.js script tag. --- pages/_document.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/_document.tsx b/pages/_document.tsx index 9968ccb..77aeb71 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -46,12 +46,6 @@ class MyDocument extends Document { `, }} /> -