diff --git a/.changeset/polite-spies-beg.md b/.changeset/polite-spies-beg.md new file mode 100644 index 0000000000..f93fca6709 --- /dev/null +++ b/.changeset/polite-spies-beg.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Lazy load iframely script to make page more responsive diff --git a/packages/gitbook/src/components/DocumentView/Embed.tsx b/packages/gitbook/src/components/DocumentView/Embed.tsx index 77a2dda90b..ae414e38a3 100644 --- a/packages/gitbook/src/components/DocumentView/Embed.tsx +++ b/packages/gitbook/src/components/DocumentView/Embed.tsx @@ -1,5 +1,4 @@ import * as gitbookAPI from '@gitbook/api'; -import { headers } from 'next/headers'; import Script from 'next/script'; import ReactDOM from 'react-dom'; @@ -32,7 +31,11 @@ export async function Embed(props: BlockProps) { }} data-visual-test="blackout" /> -