diff --git a/content/en/docs/5.configuration-glossary/23.configuration-render.md b/content/en/docs/5.configuration-glossary/23.configuration-render.md index efc44112c8..30ea1335ef 100644 --- a/content/en/docs/5.configuration-glossary/23.configuration-render.md +++ b/content/en/docs/5.configuration-glossary/23.configuration-render.md @@ -299,3 +299,20 @@ export default { } } ``` + +## shouldPreload & shouldPrefetch + +Creates [\](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link) tag with `rel="preload"` or `rel="prefetch"` for external resources (scripts, styles, etc.). + +Default configuration: + +```js +export default { + render: { + bundleRenderer: { + shouldPrefetch: () => false, + shouldPreload: (fileWithoutQuery, asType) => ["script", "style"].includes(asType), + }, + }, +} +```