3 ms·
You can use an AbortController for that. Also, keep in mind that the linked solution does not abort the web request. It only aborts waiting for the response in
by nikeee 5y ago
You can use an AbortController for that.
Also, keep in mind that the linked solution does not abort the web request. It only aborts waiting for the response in the JS code. The browser does not close the connection.