5 // document.title reports the DOM page visibility and RAF count.
6 document.title = document.visibilityState + ' ' + count++;
9 setTimeout(setReady, count > 10 ? 0 : 100);
12 document.addEventListener('visibilitychange', setTitle);
14 (function changeTitle() {
15 window.requestAnimationFrame(changeTitle);
25 function sendReady() {
26 if (window.domAutomationController) {
27 domAutomationController.setAutomationId(1);
28 domAutomationController.send("READY");