打开多标签时 Nuxt 浏览器崩溃

24s*_*ron 4 vue.js vuex nuxt.js

我有一个 vue nuxt 应用程序,当我使用单个选项卡时效果很好

When I open 3 tabs, for the application. The 2 first tabs works good and continue working but the 3's tab does not work This happened in chrome and in firefox (so it does not the browser)

The page loaded in the first load, but when trying to move to another page seems that page script does not loaded and the app failing. (the status of the request does not complete and stay on pending)

在此处输入图片说明

sor*_*ush 5

在开发模式下,Nuxt.js 创建 2 个到服务器的持久连接,以接收热更新并保持页面处于活动状态。每个浏览器对一个站点允许拥有的特定服务器的并发连接数都有自己的限制,因此如果您在同一浏览器的多个选项卡中打开同一个 Nuxt.js 站点,您可能会超过浏览器的限制。

更多信息:https : //tools.ietf.org/html/rfc6202#section-5.1

  • 哇,我不敢相信我不知道这一点,而且找到答案非常困难。我正在测试我的激活流程,在单击激活链接时发送电子邮件并打开一个新选项卡。当我最终得到三个选项卡时,我的组件无法加载,并给了我一个 chunkloaderror / 无法加载异步组件。事实证明,这就是问题所在。谢谢。 (2认同)

pus*_*ech 2

来自GitHub issues中的Pimile说道:

“我认为是因为 Chrome 默认限制每个域 6 个 HTTP 套接字。例如,对我来说,当我打开第 7 个选项卡时,它会显示等待可用套接字。”

因此,尝试在 Firefox 上进行测试,也许可以查看这个问题,ti 可以提供帮助https://github.com/nuxt/nuxt.js/issues/6007