mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 17:42:27 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
9 lines
766 B
Markdown
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) |