Does Gmail use the setInterval () or setTimeOut () function to update periodically?

I assume they use these two functions to call Ajax to their server, but I'm not sure. How do they do it?

Thanks.

0
source share
1 answer

I did not try to reverse engineer Gmail, but most likely they use some form of Comet (reverse AJAX).

With this approach, information is available instantly without any delay and additional network traffic.

+2
source

Source: https://habr.com/ru/post/1412771/


All Articles