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

Experimenting with scheduler.yield #812

Open
asafm7 opened this issue Sep 2, 2023 · 3 comments
Open

Experimenting with scheduler.yield #812

asafm7 opened this issue Sep 2, 2023 · 3 comments
Labels
Needs Discussion Anything that needs a discussion/agreement

Comments

@asafm7
Copy link

asafm7 commented Sep 2, 2023

Feature Description

Is this something worth experimenting with?

https://developer.chrome.com/blog/introducing-scheduler-yield-origin-trial/

@mukeshpanchal27 mukeshpanchal27 added Needs Discussion Anything that needs a discussion/agreement [Type] Module Proposal and removed [Type] Module Proposal labels Sep 4, 2023
@westonruter
Copy link
Member

Yes it is!

@asafm7
Copy link
Author

asafm7 commented Apr 20, 2024

@westonruter @mukeshpanchal27

Maybe this can help with the new INP Core Web Vital?

https://nitropack.io/blog/post/introducing-scheduler-yield

@westonruter
Copy link
Member

@asafm7 Yes, it's something that is marked as a TODO for implementing in the Interactivity API. Currently it is implementing setTimeout() but scheduler.yield() can be used once it is available: WordPress/gutenberg#58227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Discussion Anything that needs a discussion/agreement
Projects
None yet
Development

No branches or pull requests

3 participants