function preload
preload(options?: PreloadOptions): Promise<void>

Fetches the data chunks ahead of time so the first real lookup does not have to wait on the network. Purely a warm-up: it never changes the active language or geo mode.

Examples

Example 1

// e.g. when an address form mounts void preload({ language: 'both', geo: true });

Parameters

optional
options: PreloadOptions

Return Type

Promise<void>

Usage

import { preload } from ".";