Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Video modal not loading: how to find and fix it

CNV-121Low impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A video modal (also called a lightbox or video popup) is a window that opens over the page when someone clicks a thumbnail or play button. It usually holds a YouTube, Vimeo, Wistia or similar embed inside an iframe, which is a page shown inside your page.

The issue is when that window does not work. The box opens empty, shows a grey or black area, shows 'refused to connect' or 'video unavailable', or the click does nothing at all.

Why it costs you leads or sales

Many pages use a video to explain the offer, show the product or build trust just before a call to action. If the video fails, visitors lose that explanation and may leave. The impact is usually lower than a broken form or checkout, because the rest of the page still works, but it matters on landing pages where the video is the main pitch.

Where a broken video modal hurts the journey
  1. Landing pageLoads normally
  2. Click playModal opens
  3. Video loadsBlank box or error
  4. Visitor convincedPitch not seen
  5. CTA clickFewer visitors reach it

The page loads, but the video that should persuade the visitor never plays.

A video modal that opens but fails

The visitor clicks play and the modal shows an error instead of the video.

How to check if your site has it

Test the video modal yourself
  1. Open the page in a private window

    This avoids cached files and extensions that may hide the problem.

  2. Open developer tools

    Press F12 (or Cmd+Option+I on Mac). Go to the Console and Network tabs.

  3. Click the play button

    Watch for red errors in the Console and failed (red or blocked) requests in the Network tab.

  4. Read the message

    'Refused to display in a frame' or 'X-Frame-Options' means the host blocks embedding. A 404 means the URL is wrong. 'Blocked by CSP' means your Content-Security-Policy does not allow the video host. A script error means the lightbox code failed.

  5. Repeat on mobile and with consent declined

    Test on a real phone, and once with cookies rejected, because some consent tools hide embeds until you accept.

Common symptoms and likely causes
What you seeLikely cause
Nothing happens on clickLightbox script failed or JavaScript error
Empty modalEmpty or wrong video URL in the trigger
Grey box saying the content is blockedConsent tool holding back the embed
'Refused to connect'Wrong embed URL format or embedding disabled by the video owner
'Video unavailable'Video deleted, made private or restricted by region
Console says blocked by CSPContent-Security-Policy missing the video domain

How to fix it

Fix the cause you found in the console. The steps below cover the most common ones. Use the platform tabs for where to change things.

Fix the common causes
  1. Use the embed URL, not the watch URL

    YouTube needs https://www.youtube.com/embed/VIDEO_ID, not the watch?v= link. Vimeo needs https://player.vimeo.com/video/ID.

  2. Check the video itself

    Open it in a logged-out window. Make sure it is public or unlisted, not deleted, and that embedding is allowed in the video's settings.

  3. Allow the video host in your security headers

    If you use a Content-Security-Policy, add the host to frame-src, for example https://www.youtube.com and https://player.vimeo.com.

  4. Sort out consent handling

    If your consent tool blocks embeds, show a clear 'Accept to watch' prompt, or use youtube-nocookie.com, and make sure the video loads after consent is given.

  5. Fix the lightbox script

    Make sure the script loads without errors, is not blocked by a minifier or delay setting, and does not conflict with another plugin.

A correct YouTube embed inside a modalhtml
<iframe
  width="560" height="315"
  src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1"
  title="Product video"
  allow="autoplay; encrypted-media; picture-in-picture"
  allowfullscreen>
</iframe>
Content-Security-Policy directive that allows common video hoststext
frame-src 'self' https://www.youtube.com https://www.youtube-nocookie.com https://player.vimeo.com https://fast.wistia.net;
Where to fix it by platform
  1. Check the plugin or block

    Open the page in the editor and re-enter the video URL in the lightbox or video popup widget of your page builder or plugin.

  2. Rule out optimisation plugins

    Temporarily turn off JavaScript delay, minify or combine options in your cache plugin and test again. Exclude the lightbox script if that fixes it.

  3. Update and test for conflicts

    Update the lightbox plugin and theme. Switch other plugins off one by one on a staging copy to find a conflict.

Video modal before and after the fix

Broken

  • Click opens an empty or black box
  • Console shows a blocked frame or 404
  • Visitors skip the video

Fixed

  • Click opens the player
  • Embed URL and headers allow the host
  • Video plays on desktop and mobile

How to confirm it's fixed

Fix verification
  • The modal opens on click on desktop
  • The video plays on iPhone and Android
  • No red errors in the Console when the modal opens
  • The video loads in a private window
  • The video loads after accepting cookies, and a clear message shows if cookies are declined
  • The close button works and the page scrolls again

How to prevent it happening again

Video modals break quietly because they depend on things you do not control: the video host, a plugin update or a consent tool change. Keep a few habits.

Prevention habits
  • Keep important videos on a channel you control and do not delete or make them private
  • Retest the modal after plugin, theme or consent tool updates
  • Keep a note of which pages use video modals
  • Use a poster image and a plain link to the video as a fallback
  • Check the page again after changing security headers

How FunnelGuard handles this

FunnelGuard detects this today. Its no_broken_resources check looks for page resources that fail to load while a robot visitor runs your journey. A video embed that returns an error or is blocked can show up this way. The check is marked third party, so it relies on what the video host returns at the time of the run.

Be aware of the limits: this flags failed resources, not whether the video looks right or plays smoothly to a person. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my video popup blank?

A blank video popup usually means the iframe has an empty or wrong URL, the video host refuses to be embedded, or a script or consent tool stopped it loading. Open the browser console and Network tab, click play and look for the failed request or error message.

Why does my YouTube video say 'refused to connect' in a modal?

This usually happens when the iframe uses a normal watch URL instead of the embed URL. Use https://www.youtube.com/embed/VIDEO_ID. Also check that the video owner allows embedding and that your site's Content-Security-Policy allows youtube.com.

How do I fix a lightbox video that doesn't play on mobile?

Test on a real phone and check the console for errors. Mobile browsers often block autoplay with sound, so remove autoplay or add a visible play button. Also check that the modal fits the screen and the close button is reachable.

Can a cookie banner stop my video modal from loading?

Yes. Some consent tools block YouTube and Vimeo embeds until the visitor accepts cookies, which leaves an empty box. Show a clear 'Accept to watch' prompt, or use a privacy-enhanced embed such as youtube-nocookie.com where it suits your policy.

Why does my video modal work in the editor but not on the live site?

Live sites often add caching, script delay, minification, consent tools or security headers that the editor preview does not. Disable those one at a time and test the published page in a private window to find the cause.

Can a Content-Security-Policy block my video?

Yes. If your policy has a frame-src or default-src directive that does not list the video host, the browser refuses to load the iframe. Add the host, such as https://player.vimeo.com, and the console error disappears.

Can FunnelGuard tell me when my video modal stops loading?

FunnelGuard's no_broken_resources check can flag page resources that fail to load during a scheduled journey run, which can include a broken video embed. It does not judge playback quality. Alerts come with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: 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.