--- title: Script Component description: Optimize third-party scripts in your Next.js application using the built-in `next/script` Component. --- {/* The content of this doc is shared between the app and pages router. You can use the `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} This API reference will help you understand how to use [props](#props) available for the Script Component. For features and usage, please see the [Optimizing Scripts](/docs/app/guides/scripts) page. ```tsx filename="app/dashboard/page.tsx" switcher import Script from 'next/script' export default function Dashboard() { return ( <>