In the example, isn't the requestAnimationFrame always called more than once if once queued were fired within a single frame? #23635
Labels
area: DOM/CSSOM
Content:WebAPI
Web API docs
effort: medium
This task is a medium effort.
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
What specific section or headline is this issue about?
examples
What information was incorrect, unhelpful, or incomplete?
at the beginning of the article, it says
but in the example, if once queued were fired within a single frame happened, weren't there always 2 or more
requestAnimationFrame
calls made (even those redundant async calls do nothing becausepreviousTimeStamp !== timestamp
, but it is still a useless call?)?In the example, isn't the requestAnimationFrame always called more than once if
What did you expect to see?
maybe when found
(previousTimeStamp !== timestamp)
, it should skip to call a newrequestAnimationFrame
?Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/window/requestanimationframe
The text was updated successfully, but these errors were encountered: