wait for the window to be loaded, not the document...