javascript - Check if something was processed -
the solution needs work @ least in chrome. detect when document ready. wait, not verify document.readystatus
or document.onreadystatechange
.
when use xmlhttprequest, instance, page "processing" something. , need exact moment when process end , trigger callback. problem don't have access xmlhttprequest implementation code. can check document status, instance.
so, instance, if on page had 4 xmlhttprequest running, , 3 had end, nothing have, yet. after last 1 stop process, callback triggered.
Comments
Post a Comment