I have two request, one is load image(the back-end server will cost much time), the other is ajax. I want like following:
$.when(
[do image load]
[do ajax]
).then(
alert('all complete')
)
However, $.when and then use for multiple ajax request, how to deal with the ajax and image loading