3 ms·
You're not wrong in terms of the sample code, but in general the "success" method might be called after the request is complete. It's like the "ready" event in
by mrkurt 16y ago
You're not wrong in terms of the sample code, but in general the "success" method might be called after the request is complete. It's like the "ready" event in jQuery, you're meant to use that even after the DOMReady has fired.