Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


> 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.


Wouldn't you be using the callback or Promise for those cases?


Or prefilter if you need to track global requests.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: