bigskysoftware / bigskysoftware/htmx-extensions

sse extension, swap delay not working

Open
#127 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
284
Forks
88
PR merge metrics
No merged PRs in 30d

Description

I have SSE extension setup and working as per the following HTML
```


```
The `afterbegin` is working, and I get a different effect if I change it to one of the other values, but the fragments swap in immediately whatever I set `swap:` too.

I had a quick look at the extension code, and it seems to generate a swap spec and pass it to the api swap function so I couldn't see an obvious problem, it looked like it ought to work

Also in Safari this is how that part of the docs render, the scroll bar is covering the bottom portion of the code making it tricky to read
image

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the supplied HTML and the SSE extension enabled, then trace how the extension builds its swap spec before calling the API swap function. Verify why the `swap:10s` delay is ignored while `afterbegin` works, and inspect the Safari rendering of the documentation code block. Done means the delay is honored and the affected documentation remains readable in Safari.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.