Use page location as indicator for page load (#5735) [deploy]

This commit is contained in:
Ben Halpern 2020-01-27 16:12:26 -05:00 committed by GitHub
parent 4568f4b6f0
commit ac222865ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {