Revert 59f94d7fab6

Does not work when adding layers that are not loading anything (the loading
indicator would never go away. Details in #15.