3 · Intercept
Sparke catches plain left-clicks; new tabs, downloads and externals pass straight through.
Sparke listens for plain left-clicks on eligible links. When it catches one, it prevents the normal full-page navigation and prepares to swap instead. Everything it shouldn't touch is allowed straight through to the browser.
What passes through untouched
- middle-clicks, ⌘/Ctrl-clicks, and anything opening a new tab
-
downloads, externals, hash links,
mailto:/tel: -
routes excluded via
data-ignore
Forms, too
GET forms are intercepted and swapped like a link, with fields
serialized into the query string. POST and other methods do an
ordinary full submit – and forms carrying
hx-* attributes are skipped entirely so HTMX stays in
charge. See Forms for the full story.
Interception is the only place Sparke changes default browser behaviour – and only for navigations it can make instant.