This feature is experimental. Please share your experiences so we know what to keep or change.
While revalidating content rendered from a stale cache entry,
all targeted fragments are assigned the .up-revalidating class.
The class remains set while the revalidation request is loading. It is removed when the request ends for any reason.
This fragment has been rendered from an older cache entry. Unpoly will automatically send a revalidation request
and marks the fragment as .up-revalidating:
<div id="target" class="up-revalidating"> <!-- mark: class="up-revalidating" -->
Possibly stale content
</div>
You can style revalidating fragments to convey that content might be stale:
.up-revalidating {
filter: grayscale(80%);
opacity: 0.5;
}