Files
developer-roadmap/roadmaps/nextjs/content/scripts@JFrpy3dGt-UP9Weo1VBvN.md

9 lines
766 B
Markdown

# Third-Party Scripts
Third-party scripts are code snippets from external sources that add functionality to your website, such as analytics, advertising, or social media widgets. Next.js allows you to load a third-party script for multiple routes through the `next/script` component, optimizing performance and enhancing control over when and how scripts are executed within your application.
These scripts can impact your website's performance because they often require downloading and executing code from external servers. Managing these scripts effectively is crucial for maintaining a fast and responsive user experience.
Visit the following resources to learn more:
- [@official@How to load and optimize scripts](https://nextjs.org/docs/app/guides/scripts)