bigskysoftware / bigskysoftware/htmx
Support enabling htmx.logAll via <meta> tags to capture early events
Open
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
Currently, when `htmx.logAll` is called, it only starts logging events after HTMX has been initialized. This means that some initial events can be missed, especially in scenarios where HTMX is used with async/await code or other deferred setups.
The root issue seems to be that the `logger` is null until `htmx.logAll` is explicitly invoked, which happens too late to capture early-stage events.
Could we add support for enabling the logger earlier in the lifecycle, specifically via a ?
Let me know and if okay I'll work on that.
Contributor guide
Assessment
This issue has not been assessed yet.