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

Add a meta explainer #82

Merged
merged 6 commits into from
May 28, 2024
Merged

Add a meta explainer #82

merged 6 commits into from
May 28, 2024

Conversation

shaseley
Copy link
Collaborator

@shaseley shaseley commented Apr 3, 2024

Add an explainer tying together the various Scheduling API proposals, which TAG mentioned requested, and which I agree would be helpful.

@shaseley
Copy link
Collaborator Author

shaseley commented Apr 3, 2024

@mmocny @clelland would you mind taking a pass? @anniesullie too if you're interested.

@shaseley
Copy link
Collaborator Author

FYI @philipwalton as well - feedback appreciated!

@philipwalton
Copy link

@brendankenny can you take a look as well?

explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@shaseley shaseley left a comment

Choose a reason for hiding this comment

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

Thanks @clelland.

explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
internal [browser task
queues](https://source.chromium.org/chromium/chromium/src/+/261ad5cb51f1dbf3385af53218512796602100ed:content/browser/scheduler/browser_task_queues.h).

1. **user-blocking**: tasks that block a user from interacting with and using the app. This could be

Choose a reason for hiding this comment

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

FWIW, it's never been totally clear to me what is meant by "block a user from interacting with and using the app". I've interpreted this to mean "tasks that will run before the next frame is presented", but I'm not 100% sure that's accurate since that's precisely what sync code does.

So I guess my suggestion here is to more clearly define what "blocking" means.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Naming is hard. I tried rephrasing this as "essential to user experience" and added a bit more details (including synchronous vs. user-blocking). LMK if this helps or if I should try to expand more.

explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
**Example: The `taskpriority` `<script>` attribute.**
```html
<!-- Ensure the script execution doesn't get in the way of other pending work. -->
<script async taskpriority="background" ...>

Choose a reason for hiding this comment

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

This is really cool!

explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
shaseley and others added 2 commits April 30, 2024 13:33
Co-authored-by: Philip Walton <philipwalton@users.noreply.github.com>
Copy link
Collaborator Author

@shaseley shaseley left a comment

Choose a reason for hiding this comment

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

Thanks for the feedback, @philipwalton.

explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
explainers/prioritized-task-scheduling.md Outdated Show resolved Hide resolved
internal [browser task
queues](https://source.chromium.org/chromium/chromium/src/+/261ad5cb51f1dbf3385af53218512796602100ed:content/browser/scheduler/browser_task_queues.h).

1. **user-blocking**: tasks that block a user from interacting with and using the app. This could be
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Naming is hard. I tried rephrasing this as "essential to user experience" and added a bit more details (including synchronous vs. user-blocking). LMK if this helps or if I should try to expand more.

@shaseley shaseley merged commit a3b0d5c into WICG:main May 28, 2024
2 checks passed
@shaseley shaseley deleted the meta-explainer branch May 28, 2024 18:56
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.

None yet

3 participants