3 ms·
requestAnimationFrame doesn't repeat, it only triggers the function once, you have to request an animation frame on each render to have it run again. Valid poin
by foota 10y ago
requestAnimationFrame doesn't repeat, it only triggers the function once, you have to request an animation frame on each render to have it run again. Valid point however regarding the other things. Might be a neat api to have like a generator for these kinds of things, something like:
for click in window.document.body:
// do something with click
and then stick this in an async function?
- gianlucaguarini 10y agoSee my answer above :)