Activates this link-like element on mousedown instead of click ("Act on press").
For links with [up-follow], this will save time that would otherwise be spent
waiting for the user to release the mouse button. Since the request starts right away,
the interaction will appear faster.
For faux-interactive elements, setting [up-instant] will cause
the up:click event to be emitted on mousedown instead of click.
A press on a control within the element, or a press whose mousedown was prevented, still emits up:click on click.
To apply the instant effect without changing your HTML, configure up.link.config.instantSelectors.
<a href="/users" up-follow up-instant>User list</a> <!-- mark: up-instant -->
Links or faux-interactive elements with [up-instant]
can still be activated with the keyboard.
With [up-instant], users can no longer cancel a click by dragging the pressed mouse away from the element.
However, for navigation actions this isn't required. E.g., many operating systems switch tabs on mousedown
instead of click.
Tip Your coding agent can search these docs locally with the Unpoly agent skill