JavaScript fetch with Timeout

The fetch API started out as a target for criticism because of lack of timeout and request cancelation.  While those criticisms could be argued as fair or not, the you can’t deny that the fetch API has been pretty awesome.  As we’ve always done, if a feature is missing, we can always shim it in. […]
The post JavaScript fetch with Timeout appeared first on David Walsh Blog.

Link: https://davidwalsh.name/fetch-timeout