Javascript Firefox加载底部屏幕永不停止

Javascript Firefox加载底部屏幕永不停止,javascript,css,backbone.js,marionette,Javascript,Css,Backbone.js,Marionette,我试图用window.open()在Firefox中打开一些东西,当我加载窗口时,加载屏幕永远不会停止。我还是不明白为什么。请提出忠告 屏幕截图: 我的代码: var html = this.compilePageHtml(); //We get some HTML code this._previewWindow = window.open("about:blank", "PreviewWindow","width=320, height=570, scrol

我试图用window.open()在Firefox中打开一些东西,当我加载窗口时,加载屏幕永远不会停止。我还是不明白为什么。请提出忠告

屏幕截图

我的代码:

        var html = this.compilePageHtml(); //We get some HTML code
        this._previewWindow = window.open("about:blank", "PreviewWindow","width=320, height=570, scrollbars=yes" ); 
        this._previewWindow.document.write(html); //Loads HTML in new window popup
是什么导致了这个问题在Chrome、Safari上运行良好

谢谢,
-R

我发现问题出在document.open(),我需要关闭document.close(),以便它停止传输。

我也有过这个问题,
document.close
也是我所做的。