Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Chat widget not loading: how to find and fix a failed script

CNV-274High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Most live chat tools (Intercom, Tidio, Crisp, Drift, LiveChat, HubSpot chat and similar) work by loading a JavaScript file from the vendor's servers. That file draws the chat bubble and opens conversations. If the file never arrives or never runs, the page looks normal but the chat is simply absent.

Where a chat script failure breaks the path
  1. Page loadsHTML and content render normally
  2. Chat script requestedRequest is blocked, 404s or times out
  3. Chat bubble shownNever appears
  4. Conversation startedNo chat, no lead

The page loads, but the chat script fails, so every later step is lost.

Why it costs you leads or sales

Chat is often the fastest way for a hesitant visitor to ask a question before buying or booking. When the script fails, those visitors get no prompt and no answer. Many leave rather than hunt for a contact form.

Chats started per day before and after a script failureExample numbers
Chats started per day before and after a script failure (example)Day 1: 21 chats/day; Day 3: 19 chats/day; Day 5 (broken): 0 chats/day; Day 7 (broken): 0 chats/day; Day 9 (fixed): 20 chats/day081621190020Day 1Day 3Day 5 (broken)Day 7 (broken)Day 9 (fixed)chats/day

Example: illustrative numbers for a site that normally gets about 20 chats a day. The script breaks on day 4 and is fixed on day 8.

How to check if your site has it

Find the failing chat request
  1. Open the page in a clean browser window

    Use a private window with extensions off, so an ad blocker does not hide the real cause.

  2. Open DevTools and the Network tab

    Press F12 (or Cmd+Option+I on Mac), choose Network, tick Disable cache, then reload.

  3. Filter for the chat vendor

    Type the vendor name (for example intercom, tidio, crisp) in the filter box. Look for rows in red or with a status other than 200.

  4. Read the Console tab

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

  5. Test other pages and devices

    Check the homepage, a key landing page and a phone. The script may fail on only some templates.

What common errors usually mean
What you seeLikely causeFirst thing to try
404 on the chat scriptWrong or removed embed code or workspace IDCopy the snippet again from the chat dashboard
Refused to load ... Content Security PolicyCSP header does not list the chat domainAdd the vendor's domains to script-src and connect-src
ERR_BLOCKED_BY_CLIENTAd blocker or privacy extensionRetest with extensions off; this affects only some visitors
Request never sentConsent banner or tag manager trigger holds it backCheck the consent category and trigger
Pending, then timeoutVendor outage or slow networkCheck the vendor's status page

How to fix it

Fix by platform
  1. Check the plugin or snippet

    If you use the vendor's plugin, open its settings and confirm the workspace or app ID. If you pasted code, check the header/footer plugin or theme file for the exact snippet.

  2. Clear caches and optimisation

    Purge page cache and CDN. In your optimisation plugin, exclude the chat script from 'delay JavaScript' or 'combine/minify' if it stops loading.

  3. Check security plugins

    Firewall or security headers plugins may add a CSP. Allow the chat vendor's domains.

Example CSP header allowing a chat vendor (replace chat.example.com with your vendor's real domains)nginx
add_header Content-Security-Policy "default-src 'self'; script-src 'self' https://chat.example.com; connect-src 'self' https://chat.example.com wss://chat.example.com; frame-src https://chat.example.com; img-src 'self' data: https://chat.example.com" always;

How to confirm it's fixed

Confirmation checklist
  • Chat script request shows status 200 in the Network tab
  • No red errors about the chat domain in the Console
  • Chat bubble appears on the homepage and a key landing page
  • Bubble appears on mobile as well as desktop
  • Opening the chat and sending a test message reaches your team's inbox
  • Page still works with your consent banner accepted
Chat script before and after the fix

Broken

  • Script request returns 404 or is blocked
  • No chat bubble on the page
  • Console shows CSP or network errors

Fixed

  • Script loads with status 200
  • Bubble appears within a few seconds
  • Test chat arrives in your inbox

How to prevent it happening again

Prevention habits
  • Re-test the chat after theme, plugin, CSP or consent banner changes
  • Keep one chat embed only, and remove old ones when you switch vendors
  • Watch the vendor's status page and update notices
  • Document where the snippet lives (plugin, theme or tag manager)
  • Load the script async so a slow vendor never blocks the page
  • Run an automated check on a schedule so you hear about failures first
How an unnoticed failure unfolds
  1. Day 0

    A security header update blocks the chat domain

  2. Day 1-5

    Bubble is gone, chats stop, nobody is alerted

  3. Day 6

    Someone notices the quiet inbox and checks the site

  4. Day 6

    CSP is corrected and chat returns

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor loads your pages on a schedule, and its chat_widget check names the chat script that failed to load. A separate no_broken_resources check flags failed third-party requests, which covers chat vendor files.

Questions people ask

Why is my chat widget not showing on my website?

Usually the chat script failed to load. Open DevTools, go to the Network tab, reload, and look for a failed request to your chat vendor. Common causes are a wrong embed code, a Content Security Policy block, a consent banner, or an ad blocker.

How do I check if my live chat script is blocked?

Open your page in a private window with extensions disabled, press F12 and open the Console and Network tabs. A message like 'Refused to load the script' means your CSP blocks it. ERR_BLOCKED_BY_CLIENT means an extension did.

Can an ad blocker stop my chat widget from loading?

Yes. Some ad and privacy blockers block known chat or tracking domains, so a few visitors will not see the bubble even when your setup is correct. Test with extensions off first to separate that from a real fault on your site.

Why does my chat widget work on desktop but not mobile?

The script may be limited to desktop in the vendor's settings, hidden by a theme rule, or blocked by a mobile-only consent or caching setup. Test the live URL on a real phone and check the Network tab with device mode on.

Does a Content Security Policy block chat widgets?

It can. If your CSP does not list the chat vendor's domains in script-src, connect-src, frame-src and img-src, the browser refuses to load or run them. Add the vendor's documented domains rather than loosening the whole policy.

Why did my chat widget stop working after a plugin or theme update?

An update can remove your footer code, add a cache or minify rule that breaks the script, or add security headers that block it. Re-check the embed location, purge caches and look at the Console for the exact error.

How can I get alerted when my chat widget breaks?

Use a scheduled check that loads your pages and tests the chat script. FunnelGuard does this with its chat_widget check, which names the failed script, and sends an alert after a second-region re-check.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: chat_widget names the chat's failed script; no_broken_resources third_party.

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.