Edit this page

up.link up.link.preload(link, options)
JavaScript function

Preloads the given link.

When the link is clicked later, the response will already be cached, making the interaction feel instant.

Parameters

options Object

See options for up.follow().

Return value

A promise that will be fulfilled when the request was loaded and cached.

When preloading is disabled the promise rejects with an AbortError.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more