Links that are currently loading through Unpoly
are assigned the
.up-active class automatically.
.up-active in your CSS to improve the perceived responsiveness
of your user interface.
.up-active class will be removed when the link is done loading.
We have a link:
<a href="/foo" up-follow>Foo</a>
The user clicks on the link. While the request is loading,
the link has the
<a href="/foo" up-follow class="up-active">Foo</a>
Once the link destination has loaded and rendered, the
is removed and the
.up-current class is added:
<a href="/foo" up-follow class="up-current">Foo</a>