Ajax calls are they scheduled as microtasks or macrotasks ?
And is there any difference between browsers.
Ajax calls are they scheduled as microtasks or macrotasks ?
And is there any difference between browsers.
In the book Secrets of the JavaScript Ninja, 2nd Edition, the author state that the Network events are scheduled as Macrotasks.
So, an XHR callback is queued with Macrotasks.