←back to thread

setBigTimeout

(evanhahn.com)
210 points cfj | 1 comments | | HN request time: 0s | source
Show context
darepublic ◴[] No.41881730[source]
instead of chaining together shorter timeouts, why not calculate the datetime of the delay and then invoke via window.requestAnimationFrame (by checking the current date ofc).
replies(3): >>41881800 #>>41881836 #>>41883972 #
1. ◴[] No.41881800[source]