Consider adding timeouts to certain ajax requests
from https://stackoverflow.com/a/62470009/4710434
If you haven't configured timeout in your code, It will be the default request timeout of your browser.
1) Firefox - 90 seconds
Type
about:configin Firefox URL field. Find the value corresponding to keynetwork.http.connection-timeout2) Chrome - 300 seconds
With that in mind, we may need to impose a limit on certain requests like quoting to, say, 5 seconds.
I'm very sure that smf didn't use fetch? so the implicit question would be, do we change smf to fetch?
Both 90 and 300 seem extremely excessive for a timeout. I'm not so sure about 5 either. Seems like a long time but I am not a JS guru.
Makes sense to me.