Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update loaf-explainer.md: explain blockingTime #107

Merged
merged 3 commits into from
Apr 12, 2023
Merged

Update loaf-explainer.md: explain blockingTime #107

merged 3 commits into from
Apr 12, 2023

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Apr 11, 2023

No description provided.

@@ -223,6 +223,13 @@ const someLongAnimationFrameEntry = {
// [timestamp](https://dom.spec.whatwg.org/#dom-event-timestamp), i.e. the time it was queued
// which could be long before it was processed.
firstUIEventTimestamp,

// The duration in milliseconds that the LoAF was blocking in practice. Since a LoAF can be consisted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like:
"""
The duration in milliseconds that the animation frame was being blocked in practice.
Given that LoAFs can contain multiple tasks, we only consider as blocking:

  • Long tasks.
  • The longest task + the rendering time, if their sum exceeds the Long Task threshold of 50ms.
    """

Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % typo

// Given that LoAFs can contain multiple tasks, we consider the following as blocking durations:
// * Long tasks
// * The longest task + the rendering time, if their sum exceeds the Long Task threshold of 50ms.
// The blockingDuration would be the sum of those long task durations, with 50ms subtracted form each.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/form/from/

@noamr noamr merged commit c7794a9 into main Apr 12, 2023
@noamr noamr deleted the noamr-patch-1 branch April 12, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants