Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DeepFetchJsonConfig

Hierarchy

Index

Properties

as

as: "image" | "script" | "style" | "font" | "fetch" | "video"

The value for the <link rel="prefetch|preload"> element's as attribute. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link. Use "fetch" for html pages as Safari doesn't support "document".

Optional cors

cors: false | "anonymous" | "use-credentials"

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.

jsonQuery

jsonQuery: string

A json query to use when finding data within a JSON response that should be deep fetched. Queries are made using the json-query library. Properties returned by the query are expected to be strings; any non-string results are ignored.

Optional jsonQueryOptions

jsonQueryOptions: Options

Options that can be passed to json-query.

Optional maxMatches

maxMatches: undefined | number

The max number of matching elements to prefetch per page

Generated using TypeDoc