JSONP and time-outs
JSONP and time-outs
Hi
I'm using $.ajax and dataType jsonp which works by registering a callback and 'injecting' a script block.
This does not appear to pay any attention to the timeout setting. (With 'normal' Ajax the error callback would fire if the timeout was exceeded). This appears to be a known problem and is being treated as an enhancement by the jQuery team: (?#3442).
In the meantime. If I leave my app running making jsonp calls on a setInterval and each one just doesn't respond (not 404 - just doesn't respond) then the 'success' callback is never fired and I can see new script tags are inserted in head endlessly. (The cleanup is not called obviously).
Is this a problem? Does this tie up one of the browser's http request connections? Firefox apparently has 15 per server.
Thanks
Justin Wyllie