Skip to content

Commit

Permalink
try with settimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Sep 26, 2024
1 parent eb2cb64 commit 6dd61c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/efps/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export async function runTest({
last = current

if (done) return
requestAnimationFrame(handleFrame)
setTimeout(handleFrame, 0)
}
requestAnimationFrame(handleFrame)
setTimeout(handleFrame, 0)

await new Promise((resolve) => {
window.document.addEventListener('__finish', resolve, {once: true})
Expand Down

0 comments on commit 6dd61c3

Please sign in to comment.