3 ms·
Global ajax events: ( are being removed ) Events such as ajaxStart fired by $.ajax can currently be attached to any element–even to elements that
by jdavid 14y ago
Global ajax events: ( are being removed )
Events such as ajaxStart fired by $.ajax
can currently be attached to any element–even
to elements that are not in a document at all!
This creates an inefficient special case,
so we will eventually remove that ability
and fire ajax events only on document.
I need to look into this. If you are using jQuery outside of a standard browser environment this might be problematic.
- dmethvin 14y agoWouldn't you be using the callback or Promise for those cases?
- gnarf 14y agoOr prefilter if you need to track global requests.
- TheHegemon 14y ago> Ajax events should be attached only on document as of 1.9. Looks like they are not being removed but that you should attach to document only.