(This question is similar to this one, but it’s for using XMLHttpRequest instead of an iframe for Comet.) I’m starting an async long poll like this: If I do this inside <script>…</script> in the head, it will cause the document to keep loading forever. (I’m testing this in Safari on Mac OS X and the iPhone, and it’s the only