dolox/fallback

Timeout/Fallbacks when script loading is slow.

Closed this issue · 1 comments

Script loading does not falls back to the next option if the connection can be established but the response
takes (way) too long. Would be nice if there would be an optional timeout parameter (if there is, I wasn't aware of it).
fallback-issue

@Razoralpha Unfortunately you cannot set a timeout on loading scripts, it's handled by the browser.

Here's some a discussion on StackOverflow: https://stackoverflow.com/questions/2021157/any-way-to-gracefully-enforce-a-timeout-limit-when-loading-a-slow-external-file