[jQuery] Can Jquery be used to provide an image backup system?

[jQuery] Can Jquery be used to provide an image backup system?


What I'd like to do is host my images remotely, but only if the remote
host is able to return my images in a short amount of time. Can
jQuery be used to start a timer when the page is first hit and if
certain images are not loaded in X amount of seconds, then use a
different url for the images? If so, can anyone help me get started
coding this?