You can configure Unpoly to handle all links and forms on the page.
This avoids full page loads where possible, resulting in a smoother navigation experience.
For developers this means having to use fewer
This page shows how to make handle Unpoly all interactive elements. It also explains how to configure smart defaults that work for most of your links and forms.
To follow all links on a page without requiring an
There are some exceptions when links will still make a full page load under this setting:
[download]attribute or with a cross-origin
To follow all links on
mousedown instead of
click without an
There are some exceptions when links still activate on
click under this setting:
Note that if you have event listeners bound to
click on accelerated links, they will
no longer be called. You need to bind these listeners to
mousedown or, better,
To preload all links on when hovering over them, without requiring an
There are some exceptions when links will not be preloaded under this setting:
To handle all forms on a page without requiring an
There are some exceptions when forms will still submit with a full page load under this setting:
You may configure additional exceptions in
Following a link or submitting a form is considered navigation by default.
When navigating Unpoly will use defaults to satisfy the user's expectation regarding scrolling, history, focus, request cancelation, etc.
See navigation for a detailed breakdown of navigation defaults and how to customize them.