1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d628839235
commit
f0127ac1b8
@@ -231,6 +231,11 @@ provider: change its `resetSignal` prop to get the same.
|
||||
| `onToken` | `(token: string \| null) => void` | — | token once solved; `null` on expiry / error / theme change |
|
||||
| `theme` | `'page' \| 'auto' \| 'light' \| 'dark'` | `'page'` | `'page'` = the site's theme (`data-theme`, ThemeScript), no theme → `'auto'` |
|
||||
| `resetSignal` | `number` | `0` | change the value → the widget issues a new token (what `reset()` does for the provider's widget) |
|
||||
| `reserveHeight` | `number` | `73` | 1.18.0: the widget's height kept free before Cloudflare draws it (the form below does not jump); `0` for an invisible widget. Through a form: `turnstileReserveHeight` on `RenderForm` / `BuilderForm`, `TurnstileWidget({ reserveHeight })` |
|
||||
|
||||
`<Turnstile>` from `@intecion/ipal-kit/client` is a lazy wrapper since 1.18.0 (same props): the widget's code loads
|
||||
where a form shows it, not with every page; the provider in the layout loads it the same way. The eager component:
|
||||
`@intecion/ipal-kit/client/eager`.
|
||||
|
||||
### Why Turnstile is NOT fully "drop in and forget" like CookieBanner
|
||||
|
||||
|
||||
Reference in New Issue
Block a user