Error banners if I navigate away from a page before it finishes loading
Summary
If I visit a page in GitLab and then navigate away very quickly afterwards, before all the JavaScript has finished executing, I can consistently cause error banners to show up
Steps to reproduce
- Visit, e.g., https://gitlab.com/gitlab-org/gitlab-ce
- Click a link elsewhere, or enter another URL in the address bar, really quickly.
What is the current bug behavior?
Red banners appear on the screen until the new page replaces the existing content(What actually happens)
What is the expected correct behavior?
This sort of request failure doesn't need to be communicated to the user. It's distracting and looks really bad.
Relevant logs and/or screenshots
Possible fixes
Hopefully the browser tells us why the request has been prevented from completing. We can use that information to skip displaying the banner