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

Raised INP after enabling this plugin #40

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

Raised INP after enabling this plugin #40

indykoning opened this issue Jan 8, 2025 · 0 comments

Comments

@indykoning
Copy link

After installing and enabling the plugin the INP (Interaction to Next Paint) score moves from 160ms to 320ms in my testing.
The reason being that the vue.$destroy() is being called during the click event itself causing it to block that click event.

Wrapping it in 2 setTimeouts does solve the issue by decoupling it, however i'm unsure wether this makes the caching of the page in Turbo work as expected.

I've also created hotwired/turbo#1359 in case it can only be solved there.

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

No branches or pull requests

1 participant