G
G
GaserV2020-08-21 21:34:46
JavaScript
GaserV, 2020-08-21 21:34:46

What can cause a web application to freeze if left on it for a while?

Such a problem. There is a web application. Web sockets are used. Well, as long as you watch for a while - everything is ok. But if you leave for 3-5 hours, leaving the application open (tab) and upon returning try to do something (for example, click on any button) - the reaction is zero. It's like you're just clicking into the void. There are no errors in the console. What could be the problem? Maybe someone came across?

PS Application on React. For sockets use `laravel-echo`

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Kalinin, 2020-08-21
@MaximAr1es

If the PC goes to sleep or there is no asset for a long time, the running server (if local) is probably going to sleep.
It is also likely that the browser simply stops processing data at some point if the computer goes to sleep, for example, which requires a page refresh so that all scripts are loaded.
Maybe some background process has overflowed the browser's buffer, which is why it is no longer able to process something.
Perhaps the browser simply puts the application in "sleep" mode and makes it inactive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question