Function: preloadElements()
function preloadElements(types): Promise<void>;
Defined in: lazy.tsx:114
Warm the chunks for these element types (docs/06 §16, docs/17 §3.4).
A PWA calls this after its service worker has precached, so the first form opened offline draws its photo and location fields without a network round trip it cannot make. Types with no chunk — everything in the core bundle — are silently fine, because a host should be able to name the types its form uses without first knowing which of them were split.
Parameters
| Parameter | Type |
|---|---|
types | readonly string[] |
Returns
Promise<void>