developit / developit/preact-cycle

setTimeout vs. requestAnimationFrame?

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
JavaScript
Stars
143
Forks
12
PR merge metrics
No merged PRs in 30d

Description

hey just wondering if there was any reason you went with a setTimeout in the renderer here? just out of simplicity?

I'm thinking requestAnimationFrame might be a bit better (to render on the paints) but i'm not sure if setTimeout was a deliberate decision or not.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.