It appears as though the failure callback never gets called if the device is not connected to the internet anymore. For example, a page that makes a request every 30 seconds to get updates – if the device no longer has reception, does not execute the failure callback. It does nothing instead, is there a way to set a timeout for requests? I am not seeing one mentioned anywhere in xhr.js.