The attribute whose value should be prefetched. Defaults to src
.
A callback to override the default prefetching logic. Will be called for each matching element,
or if maxMatches
is provided, the first n elements.
The value of the crossorigin
attribute of the prefetch link. Defaults to 'anonymous'. Setting this to false
makes it so the crossorigin
attribute is omitted, i.e. no CORS is used.
The max number of matching elements to prefetch per page
The CSS selector to use when finding elements whose src or href should be deep fetched
Generated using TypeDoc
The value for the
<link rel="prefetch|preload">
element'sas
attribute. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link. Use "fetch" for html pages as Safari doesn't support "document".