Complete the code to import the Script component from Next.js.
import [1] from 'next/script';
The Next.js Script component is imported as Script with a capital S.
Complete the code to add a third-party script with the Script component using the src attribute.
<Script [1]="https://example.com/script.js" />
The src attribute specifies the URL of the external script to load.
Fix the error in the code to load a script after the page is interactive using the strategy attribute.
<Script src="https://example.com/script.js" strategy=[1] />
The afterInteractive strategy loads the script after the page becomes interactive, which is common for third-party scripts.
Fill both blanks to add an inline script with the Script component and set it to load before the page is interactive.
<Script [1]=[2]>{`console.log('Hello!')`}</Script>
Use the strategy prop with value "beforeInteractive" to run inline scripts early.
Fill all three blanks to add a third-party script with a unique id, load it lazily on page load, and add a custom data attribute.
<Script id=[1] src="https://example.com/script.js" strategy=[2] data-custom=[3] />
Assign a unique id, use lazyOnload strategy to load script lazily, and add a custom data attribute with a string value.