From 172cdaa3282e2e144722a866fdfdb74b9baf7e59 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 19 Sep 2020 15:56:19 -0500 Subject: [Bug] Attach sign-up form verification handler when DOM is ready rather than when all resources have loaded --- public/registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') diff --git a/public/registration.js b/public/registration.js index a82ec09c2..0533a48c3 100644 --- a/public/registration.js +++ b/public/registration.js @@ -50,5 +50,5 @@ function addSubmitHandler() { if (!!form) { form.addEventListener('submit', handleSubmit); } } -window.addEventListener("load", addSubmitHandler); +window.addEventListener('DOMContentLoaded', addSubmitHandler); -- cgit