INP · high impact

Delay heavy third-party scripts

External scripts (like analytics, chat widgets, and ads) are slowing down the initial load of your page.

Why it matters

Third-party scripts often execute long tasks that block the main thread, destroying INP and TBT scores.

How to fix it in WordPress

  1. Identify the heaviest third-party scripts (e.g., chat widgets, trackers).
  2. Use your performance plugin to 'Delay JavaScript execution' until user interaction.
  3. Alternatively, host the scripts locally if your plugin supports it.

Plugin-specific steps

Already using one of these plugins? Follow the exact steps for your setup.

WP Rocket

  1. 1Go to Settings → WP Rocket → File Optimization.
  2. 2Check 'Delay JavaScript execution'.
  3. 3This solves almost all third-party script blocking issues automatically.

Perfmatters

  1. 1Go to Settings → Perfmatters → Assets.
  2. 2Enable 'Delay Javascript'.
  3. 3Choose 'Delay All' or add specific third-party URLs to the delay list.
  4. 4If using Google Analytics, enable 'Local Analytics' under the Analytics tab.

How to verify the fix

  • Check PageSpeed Insights. The third-party code warning should disappear.
  • Load the page, wait 3 seconds, then move your mouse. The chat widget or analytics should pop in only after you move.

Find out which of these your site has.

Free scan with real Google data. Exact fixes for your plugins.