Build a Resilient fetch() Wrapper with Retry, Timeout, and AbortControll ...
A fetch() wrapper with timeout and retry for WordPress scripts fetch() has no timeout: on a bad mobile connection a request can hang for a minute while the spinner turns. It also does not repeat anything: one dropped packet or one 503 from an overloaded server, and the visitor sees an error. Both can be…
Details