htmx-extensions icon indicating copy to clipboard operation
htmx-extensions copied to clipboard

Preload: stopping event propagation when priming a cache?

Open meln1k opened this issue 5 months ago • 2 comments

I have a spinner overlay which is triggered via htmx:beforeRequest and htmx:afterRequest events, and when I use the preload extension with hx-get, the "cache priming" request sends those events and this triggers the overlay (which is undesirable since it happens on mouseover).

Shouldn't those events be caught and prevented from propagation (to keep the cache priming side-effects free)?

meln1k avatar Sep 12 '24 09:09 meln1k