title: How does JavaScript handle AJAX responses in the background?
body: <p>Since JavaScript runs in a single thread, after an AJAX request is made, what actually happens in the background? I would like to get a deeper insight into this, can anyone shed some light?    </p>