Log document visibility at each requestAnimationFrame call.