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

INP (Interaction to Next Paint) becoming long #1359

Open
indykoning opened this issue Jan 8, 2025 · 0 comments
Open

INP (Interaction to Next Paint) becoming long #1359

indykoning opened this issue Jan 8, 2025 · 0 comments

Comments

@indykoning
Copy link

When installing plugins that need to return the DOM to static HTML (Like Vue in combination with Turbo) the INP becomes quite high, since destructing Vue can be a heavy task. Causing your INP score to become significantly degraded when using Turbo.

The reason is that heavy lifting is done during the click event itself.

A potential solution is to get the heavy lifting outside of the click event. Once default is prevented we could schedule the rest of the code in order to get it to run under a separate task on the main thread. Making the click event itself run much shorter

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

No branches or pull requests

1 participant