Too many third-party scripts on your WordPress site

A high number of JavaScript scripts from third-party domains was detected. Each third-party script adds an extra network connection and JavaScript to execute.

Why it matters

Third-party scripts are outside your control: they can be slow, crash, or load other scripts themselves. They are frequently the main cause of high TBT.

How to fix

  1. 1

    Audit the impact of each third-party script

    Chrome DevTools → Network → filter by domain → identify which script loads what. PageSpeed Insights also lists third-party scripts and their estimated impact.

  2. 2

    Load third-party scripts in a deferred way

    php
    // Via WP Rocket: Settings → File Optimization → "Delay JS"
    // Via wp_enqueue_script with strategy 'defer'
    wp_register_script('mon-script', $src, [], $ver, ['strategy' => 'defer']);
  3. 3

    Host Google Analytics locally (GDPR + perf)

    The CAOS plugin (Complete Analytics Optimization Suite) downloads and hosts Google Analytics on your server, eliminating the external connection and improving performance.

  4. 4

    Delay chat and non-essential widgets

    Chat widgets, ads and tracking pixels can be loaded only on the first scroll or first user interaction.

Ready to fix this issue on your site?

Audit my site for free →