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

hx-on::after-load/settle with hx-trigger=load #3191

Open
yrashk opened this issue Feb 16, 2025 · 1 comment
Open

hx-on::after-load/settle with hx-trigger=load #3191

yrashk opened this issue Feb 16, 2025 · 1 comment

Comments

@yrashk
Copy link

yrashk commented Feb 16, 2025

When using hx-on::after-load in combination with hx-trigger="load", it works but I observe this error in the console:

Uncaught ResizeObserver loop completed with undelivered notifications

Possibly related to #3106? I also observed that before-request doesn't work (after-request does)

@MichaelWest22
Copy link
Contributor

I think you may be able to easily resolve this by just using hx-trigger="load delay:10ms" which will move the load trigger to after the page load has happened so it won't cause strange behavior. load on its own works great for trivial load events that can safely run in parallel with all the page load actions but may not work for advanced edge cases.

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

2 participants