Debounces resize/scroll events with requestAnimationFrame