1.18.0 performance items: reference 404 placeholder and heading font without preload, lazy form and Turnstile code (eager entry /client/eager), Turnstile space kept, background video paused for reduced motion, card hover on opacity, metadata stripped on upload, MongoDB TTL indexes for the consent log and statistics, unused-media notice, version limit for the plugin's entities

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 15:38:38 +01:00
co-authored by Claude Opus 5.5
parent 076b3ef707
commit d628839235
47 changed files with 2546 additions and 78 deletions
+22
View File
@@ -0,0 +1,22 @@
'use client'
import { lazy, Suspense } from 'react'
import type { BuilderFormProps } from './BuilderForm.js'
/**
* <BuilderForm> loaded only on a page that renders a form (1.18.0). RenderForm uses this: the catch-all route can
* render any block, so a static import put the form engine (fields, steps, validation, the Turnstile widget) into
* the JavaScript of every page. The server still renders the whole form (the HTML is complete without JavaScript,
* search engines and the first paint see it); the browser fetches the code while it hydrates the rest of the page.
* It is `BuilderForm` in `@intecion/ipal-kit/client` (same props). The eager component, in every page's bundle:
* `@intecion/ipal-kit/client/eager` → `<RenderForm Form={BuilderForm}>` (docs/forms.md).
*/
const Impl = lazy(() => import('./BuilderForm.js').then((m) => ({ default: m.BuilderForm })))
export function LazyBuilderForm(props: BuilderFormProps) {
return (
<Suspense fallback={null}>
<Impl {...props} />
</Suspense>
)
}