Added fallback to requestAnimationFrame to make sure that listeners are stil triggered when looking at another tab.