2 ms·
And why does that happen? I think the answer is unfortunately simple: callback are typically written inline, and promises are written as separate named functio
by trjordan 13y ago
And why does that happen?
I think the answer is unfortunately simple: callback are typically written inline, and promises are written as separate named functions that are wired up after the fact. You can do whatever you want with both, but the way jQuery implements both encourages better code from promises than callbacks.