From ad058c197874adb947c6b1065aa662437888581b Mon Sep 17 00:00:00 2001 From: King Omar Date: Sun, 12 Jul 2026 16:14:50 +1000 Subject: [PATCH] =?UTF-8?q?Fix=20#join=20scroll=20on=20mobile=20=E2=80=94?= =?UTF-8?q?=20await=20dynamic=20content=20before=20scrolling=20to=20hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index de39081..e1bd50e 100644 --- a/index.html +++ b/index.html @@ -770,10 +770,11 @@ function getMediaURL(path) { await loadUserData(); loadVerifiedUsers(); setupEventListeners(); - fetchProposals(); - fetchLeaderboard(); - fetchStats(); + await Promise.allSettled([fetchProposals(), fetchLeaderboard(), fetchStats()]); checkForProposalInUrl(); + if (window.location.hash === '#join') { + document.getElementById('join')?.scrollIntoView({ behavior: 'smooth' }); + } } // Update UI text for petition system