diff --git a/packages/sdks/nextjs/index.tsx b/packages/sdks/nextjs/index.tsx index 56e22cce..baf46ef7 100644 --- a/packages/sdks/nextjs/index.tsx +++ b/packages/sdks/nextjs/index.tsx @@ -22,6 +22,7 @@ type OpenPanelComponentProps = Omit & { cdnUrl?: string; filter?: string; globalProperties?: Record; + strategy?: 'beforeInteractive' | 'afterInteractive' | 'lazyOnload' | 'worker'; }; const stringify = (obj: unknown) => { @@ -42,6 +43,7 @@ export function OpenPanelComponent({ profileId, cdnUrl, globalProperties, + strategy = 'afterInteractive', ...options }: OpenPanelComponentProps) { const methods: { name: OpenPanelMethodNames; value: unknown }[] = [ @@ -80,7 +82,8 @@ export function OpenPanelComponent({ <>