htmx-extensions
htmx-extensions copied to clipboard
Preload: stopping event propagation when priming a cache?
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)?