--- description: Optimize your third-party scripts with the built-in `next/script` component. --- # Optimizing Scripts
Examples
The **Script component**, [`next/script`](/docs/api-reference/next/script.md), allows you to optimally load third-party scripts anywhere in your Next.js application. It is an extension of the HTML ` ``` Or by using the `dangerouslySetInnerHTML` property: ```jsx