third-party script

JavaScript from another company that runs on your site, such as analytics, ads, chat widgets or maps.

A third-party script runs with full access to your page, so a compromised vendor can read user data.

In more detail

You do not control its size, timing or behaviour, so it often hurts performance and privacy. Load it as late as it can go, and only from vendors you trust.

Example

Next.js offers next/script loading strategies and @next/third-parties components for common vendors.

Related terms

Taught in

References