This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
W3schools offers a better explanation on the ready-state-change here.
To answer your question in particular, it cannot be determined. While transitions between states are defined certain states may trigger the on-ready-state function multiple times (e.g. 3: processing request ).
Note - W3schools mentions that "onreadystatechange event is triggered four times, one time for each change in readyState.", but I remember of some place that onreadystatechange could trigger of multiple times, for the same state.