xhr-based checkOnline