Promise chain continues before inner promise is resolved

You’ve done nothing wrong here. This is jQuery’s fault, as so often1. The problem is that jQuery is not Promises/A+ compatible (until v 3.0), and fails to adopt promises/thenable from other implementations than its own. So when your callbacks do return RSVP promises, jQuery just treats them as values to fulfill with, instead of waiting … Read more