Use window.performance to measure RTT. Make timeouts more robust. Refactor check_props. Test cross-origin document. Tweak expected behavior.