polling: consider the possibility of an event changing readyState