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

🚀 FID improvement use isInputPending if available for chunk. #30300

Merged
merged 8 commits into from
Sep 23, 2020

Conversation

kristoferbaxter
Copy link
Contributor

@kristoferbaxter kristoferbaxter commented Sep 18, 2020

isInputPending is launching soon. This API is a better replacement for our current mechanism tracking the time spent in a current macrotask during chunking.

https://groups.google.com/a/chromium.org/g/blink-dev/c/8Vt2atMrNNs/m/1DGx9DKsBwAJ

This is a draft PR, and I'll continue iterating on it on Monday.

src/chunk.js Outdated Show resolved Hide resolved
src/chunk.js Outdated Show resolved Hide resolved
@kristoferbaxter kristoferbaxter marked this pull request as ready for review September 21, 2020 23:42
Copy link
Member

@samouri samouri left a comment

Choose a reason for hiding this comment

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

this is really cool

src/chunk.js Outdated Show resolved Hide resolved
test/unit/test-chunk.js Outdated Show resolved Hide resolved
@kristoferbaxter kristoferbaxter merged commit 463c561 into ampproject:master Sep 23, 2020
@kristoferbaxter kristoferbaxter deleted the input-pending branch September 23, 2020 18:33
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
…ect#30300)

* use isInputPending if available

* Add tests

* Address nit

* Closure doesnt understand navigator.scheduler yet

* unwind unwind

* Override type defintion for Navigator since its incomplete in Closure

* Address nit

* Tests renaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants