Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Third-party script failed to load: fix chat, form and payment widgets

PRF-099High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Your page asks another company's server for a file, for example a chat loader, a form embed or a payment library. The request fails, so the browser gets no file and the widget never starts. The rest of the page looks normal, which is why nobody notices.

Common causes: the script URL changed or returns a 404, a Content Security Policy (a browser rule listing which domains may load code) blocks the domain, a consent banner holds the script back, an ad blocker or firewall blocks it, the provider has an outage, or an account or plan was cancelled.

Why it costs you leads or sales

The widget is often the step where the visitor converts. No chat bubble means no conversations. No form means no leads. No payment element means no checkout. There is usually no error message on the page, so you only see it as a slow drop in results.

Where a failed script breaks the journey
  1. Visitor landsPage loads normally
  2. Script request404, blocked or timed out
  3. Widget showsEmpty space or nothing
  4. Lead or paymentNever happens

The page loads, but the widget request fails, so every later step is lost.

Chat conversations per day before and after a script failureExample numbers
Chat conversations per day before and after a script failure (example)Before failure: 12 chats; Day of failure: 4 chats; Day after: 0 chats0591240Before failureDay of failureDay afterchats

Example: illustrative numbers showing chats stopping the day the loader URL breaks.

How to check if your site has it

Find the failed request
  1. Open the page in a private window

    This avoids extensions that could block scripts. Then open DevTools (F12 or right-click, Inspect).

  2. Open the Network tab and reload

    Filter by JS. Look for rows in red or with status 404, 403, 0, or (blocked).

  3. Check the Console tab

    Messages like 'Refused to load the script because it violates the Content Security Policy' or 'ERR_BLOCKED_BY_CLIENT' name the cause.

  4. Test the script URL directly

    Paste the script address into a new tab. A 404 or an error page means the URL or account is the problem.

  5. Test key pages and devices

    Check the page where the widget matters (checkout, contact, pricing), on mobile and desktop, with and without accepting cookies.

What the error usually means
What you seeLikely causeFirst thing to try
404 Not FoundScript URL changed or removedCopy a fresh embed code from the provider
Refused to load (CSP)Your security policy lacks the domainAdd the provider's domains to the policy
ERR_BLOCKED_BY_CLIENTAd blocker or extensionTest in a clean browser
No request at allConsent rule or tag trigger holds it backCheck consent and trigger settings
Timeout or 5xxProvider outageCheck the provider status page

How to fix it

Fix the cause you found. The steps differ by platform, so use the tab that matches how the script is added to your site.

Restore the script by platform
  1. Find where the script is added

    Check the provider's plugin, your theme's header/footer scripts field, and any snippet plugin. Look for old or duplicate embed codes.

  2. Replace with a fresh embed code

    Copy the current code from the provider dashboard and paste it over the old one. Update or reinstall the provider's plugin.

  3. Clear caches

    Purge your caching and optimisation plugin. Exclude the script from 'delay JavaScript' or 'combine JS' if it breaks.

Example: loading a script with a fallback if it failshtml
<script src="https://widget.example.com/loader.js" async
  onerror="document.getElementById('chat-fallback').hidden=false"></script>
<p id="chat-fallback" hidden>
  Chat is unavailable right now. Email us at hello@example.com.
</p>

How to confirm it's fixed

Confirmation checklist
  • Network tab shows the script with status 200 and no red rows
  • The Console has no CSP or blocked-request errors
  • The widget appears on desktop and mobile
  • You can send a test chat, submit a test form, or reach the payment step
  • It also works after accepting and after declining cookies, as intended by your consent setup
  • A cache-cleared reload still shows the widget

How to prevent it happening again

Prevention habits
  • Keep a list of every third-party script, its owner and its provider account
  • Retest key pages after theme, plugin, consent or CSP changes
  • Subscribe to the provider's status page and billing emails
  • Remove scripts from tools you no longer use
  • Use the provider's current embed code, not copies from old pages
  • Run a scheduled check on the pages where the widget matters
How a silent script failure unfolds
  1. Example: Day 1

    A security plugin update adds a policy that blocks the chat domain.

  2. Example: Day 2

    The page looks fine. Chat simply never appears.

  3. Example: Day 9

    Someone notices fewer enquiries and investigates.

  4. Example: Day 9

    The domain is added to the policy and chat returns.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor loads your pages on a schedule from the EU or the US and runs a broken-resources check that looks at third-party requests only, meaning scripts and files served from other domains. If one of them fails to load, the check flags it.

A failure is re-checked from a second region before one alert goes out, so a brief glitch in one place does not wake you up. The alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) includes a screenshot and a likely cause. The check covers failed loads. It does not judge whether every feature of the widget works, so keep a journey that completes the key action for the most important ones. The Free plan includes 1 site and 2 journeys with daily checks and no card, and a free read-only website audit is available.

Questions people ask

Why is my chat widget not showing on my website?

The most common reason is that the chat script failed to load. Open DevTools, go to the Network tab, reload and look for a red or 404 request to the chat provider's domain. Other causes are a Content Security Policy blocking it, a consent banner holding it back, or a cancelled account.

How do I find which third-party script failed to load?

Open your page, press F12, choose the Network tab and reload. Filter by JS and look for rows with status 404, 403, or marked blocked. The Console tab usually gives the reason in plain words.

What does ERR_BLOCKED_BY_CLIENT mean?

It means something in the visitor's browser, usually an ad blocker or privacy extension, stopped the request. Test in a private window without extensions to see if your site works. If key features depend on that script, consider a fallback so those visitors can still act.

Can a Content Security Policy stop a widget from loading?

Yes. If the policy does not list the provider's domains in script-src, connect-src or frame-src, the browser refuses the request and logs a violation in the Console. Add the domains from the provider's documentation and retest.

Why does my payment widget not appear at checkout?

Usually its script failed to load, was blocked by a policy or optimisation plugin, or the payment provider is disabled or misconfigured in your store. Check the Network and Console tabs on the checkout page and confirm the provider is enabled in your store settings.

Can a caching or speed plugin break third-party scripts?

Yes. Options such as delay JavaScript, combine JS or minify can break loaders or change their order. Exclude the affected script from those options, purge the cache and test again.

How can I be alerted when a third-party script fails?

Use a monitor that loads your pages regularly and checks for failed external requests. FunnelGuard does this with a scheduled robot visitor, re-checks from a second region, then sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_broken_resources third_party_only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.