Skip to content

Commit

Permalink
Updating comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored and mergatron[bot] committed May 15, 2024
1 parent 2727333 commit 8e5efef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/optimized-appear/defer-handoff-block.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
})
/**
* By blocking the main thread here, we ensure that
* the keyframes
* the keyframes are resolved a good duration after the
* animation was initialised.
*/
frame.postRender(() => {
console.log(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export function handoffOptimizedAppearAnimation(
/**
* If we've been provided the frameloop as an argument, use it to defer
* cancellation until keyframes of the subsequent animation have been resolved.
* This "papers over" a gap where the JS animations haven't rendered with
* the latest time after a potential heavy blocking workload.
* Otherwise cancel immediately.
*
* This is an optional dependency to deal with the fact that this inline
Expand Down

0 comments on commit 8e5efef

Please sign in to comment.