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

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

Screenshot_from_2017-09-27_12-18-04

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