Closed ryan-roemer closed 8 years ago
Just adding a note here that for old-IE we'll need a disclaimer, because onerror
unfortunately just doesn't work. (Although, who knows, maybe everyone else just got that wrong too and we can find a way :wink:).
Having a timeout
option could come in handy, especially in that old-IE case where it could be the stand-in for onerror
. The problem with having a timeout is that you can't guarantee that the script won't still load after your timeout fires (there's no way to cancel the script loading across browsers AFAIK), so the code could still be executed after you've handled the timeout...
UPDATE: Error capture works so far for all but IE8 for a 404'ing script.
onerror
handlerscript.onerror
story.New API:
/cc @PeoB