I am trying to fetch multiple parallel request with single callback, just like jQuery "when"
$.when(ajax1, ajax2).done(callback)
I don't want to call the second ajax call after ajax1 is completed, I want ajax2 and ajax2 to be requested same time and than the callback when both are completed.
I'm looking for plain javascript instead of jQuery for such implementation.