Yes, the success member is deprecated. Thats why it appears in the documentation and every example on the jQuery website. Wait…
No,it’s not deprecated. No it’s not going anywhere. What WAS deprecated was using success as a follow-on function. You cannot do
anymore. That was replaced by .done.
success member of the settings object is perfectly valid to use, as is the
error member for failures.
So you can declare a success in the settings, you can declare an error in the settings, but to declare a done, you must invoke it on the returned object.
And I confused myself in my previous post; Done is a replacement for Success [I have readability issues with this, tbh]. The replacement for Error is
.fail(), and the ‘fire no matter what’ is
What’s the difference? Nowadays not a whole lot. before
success could take only a single function, but now it can take an array, so it’s the same as chaining multiple .done’s together…