I've made a long-polling like a request in a function using jQuery ajax, which will run all the time. There is another request made to send data to PHP back-end file and this second request is not long-polling, it just sends data to that PHP file.
Problem: I examined with Firebug that when the long-polling request is running, I'm not able to send another request as long as the long-polling is running. How do I send another request even if the long-polling is running?
Note: I've used async: true
in both.
another question: how do I make sure that even the function which holds long-polling request code will be called multiple times, but the long-polling request will be made only and only one?