By adding an up-instant
attribute to a link, the destination will be
fetched on mousedown
instead of click
(mouseup
).
<a href="/users" up-target=".main" up-instant>User list</a>
This will save precious milliseconds that otherwise spent on waiting for the user to release the mouse button. Since an AJAX request will be triggered right way, the interaction will appear faster.
Note that using [up-instant]
will prevent a user from canceling a
click by moving the mouse away from the link. However, for
navigation actions this isn't needed. E.g. popular operation
systems switch tabs on mousedown
instead of click
.
[up-instant]
will also work for links that open modals or popups.