Ready states are well defined for the HTTP XML object: https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#Properties .
But the sequence of readiness states seems different for each browser, so you cannot rely on a specific sequence of states in your code.
FF 19: 0, 1, 1, 2, 3, 4 Chrome 24: 0, 1, 2, 3, 4 Opera 12.12: 0, 1, 2, 3, 4 Safari 5.1: 0, 1, 2, 3, 4 IE 9: 0, 1, 1, 2, 3, 4
You can test your browser here .
source share