Delay the window showing until document initialization. close #78