24sharon
24sharon

Reputation: 1975

Nuxt browser crash when open multi tabs

I have a vue nuxt application that work very good when I use single tabs

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)

enter image description here

Upvotes: 12

Views: 3730

Answers (2)

soroush
soroush

Reputation: 756

In development mode Nuxt.js creates 2 persistent connections to the server to receive hot updates and to keep pages active. Each browser has their own limit for the number of concurrent connections to a specific server a site is allowed to have so if you open the same Nuxt.js site in multiple tabs of the same browser you could exceed your browser's limit.

More info: https://www.rfc-editor.org/rfc/rfc6202#section-5.1

Upvotes: 16

jcvargas
jcvargas

Reputation: 501

from Pimile in the GitHub issues says:

"I think because Chrome has a default limit of 6 HTTP sockets per domain. Eg for me it says Waiting for an available socket when I open the 7th tab."

So try to test in on firefox, and maybe review this issue, ti could help https://github.com/nuxt/nuxt.js/issues/6007

Upvotes: 2

Related Questions