Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 330
24sharon Avatar asked Feb 28 '20 10:02

24sharon


2 Answers

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

like image 89
soroush Avatar answered Sep 29 '22 14:09

soroush


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

like image 41
jc.vargas.valencia Avatar answered Sep 29 '22 14:09

jc.vargas.valencia