DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
HTML Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
HTML
Why is requestAnimationFrame preferred over setInterval for Canvas animation?
A
setInterval doesn't exist in modern browsers
B
requestAnimationFrame syncs to the display's actual refresh rate and automatically pauses when the tab is backgrounded; setInterval does neither
C
requestAnimationFrame is required by the Canvas spec
D
There is no meaningful difference between the two for animation
Check Answer