bigskysoftware / bigskysoftware/htmx

hx-indicator: specify minimum waiting time

Open
#2,975 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

`hx-indicator` is very useful to give the user some more feedback about a request being in progress.

However, in some cases, showing the indicator immediately makes the application feel clunky/slow.
For example, when used with `hx-boost`:
![chrome_qWDHrT9c5i](https://github.com/user-attachments/assets/4bedc2d8-bdb2-4947-80db-75402c5c31ff)

It would be nice if I could specify a minimum waiting time before the indicator appears.
I'm aware that this can probably be achieved with CSS animations, but I feel like a dedicated attribute works better.

My HTMX version: `1.9.12`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.