If the window hadn’t been loaded yet, we previously had to delay opening the document when changing tab (in code). Since we now create the window in the initializer, there is no longer need for this.