1. Home
  2. Glossary
  3. Third-party script
Performance

Third-party script

Code loaded from another domain, such as analytics, ads, chat widgets or fonts. Each one adds requests, can slow the page and extends the trust you place in another site.

Why it matters

Each one adds requests and runs code you do not control, which can slow the page and widen the security surface. Review them regularly and remove those you no longer use.

Example

<script src="https://widgets.example.net/chat.js" async></script>

Where you will see it

The free Page weight checker looks at this on a live page and explains what it finds in plain English: measure HTML, scripts, styles and images, find the heaviest files and render-blocking resources.

Related terms

  • Page weight: The total size of all files a browser downloads to show a page: HTML, CSS, JavaScript, images, fonts and more.
  • TBT: A Lighthouse lab metric that adds up the time the main thread was blocked by long tasks (over 50 ms) while the page was loading.
  • Content-Security-Policy: An HTTP response header that lists which sources a page may load scripts, styles, images and other resources from.

Go deeper

  • Page weight explained: What page weight means, which files make pages heavy, how to measure transferred size, and practical ways to shrink images, scripts, fonts and video.

← All 66 glossary terms

↑ ↓ to moveEnter to openEsc to closeAll results