diff --git a/site/src/components/intake/steps/DOTIntakeStep.astro b/site/src/components/intake/steps/DOTIntakeStep.astro index 72dc1f0..de8de3e 100644 --- a/site/src/components/intake/steps/DOTIntakeStep.astro +++ b/site/src/components/intake/steps/DOTIntakeStep.astro @@ -300,8 +300,12 @@ } } - // Show sections immediately and on step-shown - showRelevantSections(); + // Show sections on DOM ready and on step-shown + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", showRelevantSections); + } else { + showRelevantSections(); + } window.addEventListener("pw:step-shown", (evt: any) => { if (evt.detail.step !== "dot-intake") return; showRelevantSections();