From ac222865ac53b94a286b9ec0044805042370393a Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Mon, 27 Jan 2020 16:12:26 -0500 Subject: [PATCH] Use page location as indicator for page load (#5735) [deploy] --- app/views/layouts/_top_bar.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_top_bar.html.erb b/app/views/layouts/_top_bar.html.erb index 6a0ebb798..e25dc103e 100644 --- a/app/views/layouts/_top_bar.html.erb +++ b/app/views/layouts/_top_bar.html.erb @@ -50,8 +50,9 @@ } // Load notifications count as quickly as it's available. + // Not if we're on the notifications page itself if ( - document.getElementById('notifications-container') == null + window.location.pathname !== '/notifications' ) { var xmlhttp; if (window.XMLHttpRequest) {