diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html
index 9d52b829..ec90c304 100755
--- a/physics/templates/physics/exam_take.html
+++ b/physics/templates/physics/exam_take.html
@@ -76,55 +76,55 @@
}catch(e){ console && console.error && console.error(e); }
};
-
+ document.body.addEventListener('htmx:afterSettle', function(evt){ hideLoading(); });
+ })();
+