Title: External script makes pages black.
Last modified: April 9, 2020

---

# External script makes pages black.

 *  [developboon](https://wordpress.org/support/users/developboon/)
 * (@developboon)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/external-script-makes-pages-black/)
 * Hi all,
 * So I am running into a problem with WordPress, and I have tried anything in my(
   beginners) develop skills to try and tackle this problem, but so far no luck 
   so I’m trying it on here.
 * So I’m building this website for an online radio station, that wants to post 
   their episodes and live streams on Mixcloud but also want to publish them on 
   to there (new) website. Via customization in the theme that I am using, I managed
   to pull a custom field within a WordPress Post as parameter to trigger the Mixcloud
   Footer Widget.
 * And here starts the problem…
 * The footer widget of Mixcloud needs to be on the whole site so it continues playing
   while looking throughout the website. Since I have added the scrips of Mixcloud,
   the first request of the website will load the WordPress page itself, and the
   footer, also the widget receives the correct parameter/custom field if you click
   on the image. So that part is working perfectly.
 * But when I click on another link, the homepage, for example, the footer widget
   stays loaded and keeps playing (which it should!) but the rest of the site isn’t
   loading or showing properly. I do see in the source code that the HTML part of
   the website does load, but it shows as a white page for some reason. This is 
   the script from Mixcloud that I’m using:
 *     ```
       <script src="//widget.mixcloud.com/media/js/widgetApi.js" type="text/javascript"></script>
               <script src="//widget.mixcloud.com/media/js/footerWidgetApi.js" async>
                   {"feed": "/itmotr-radio/"}
               </script>
       ```
   
 * I have been told that the script might load before the page itself, but I don’t
   think that’s the reason why the pages aren’t showing correctly, because like 
   I mentioned before, the source code is fully there, but it isn’t showing correctly.
 * **Things I have tried**
    – Using a plugin to add the scripts in the footer – 
   Placing the script into the footer.php of the theme – Placing the script into
   the function.php of the theme – Adding tags to the script so the loading will
   be done after the whole site is loaded.
 * If I remove the script, the pages show up as normal, but then I lose full functionality
   of the thing that I want to accomplish.
 * Does someone know how to tackle this problem?
    It will help me a lot 🙂
 * Best regards,
    Casper
 * ————
    using Salient theme using the newest version of WordPress using Brackets
   and FileZilla and Brackets to edit and upload my custom files
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexternal-script-makes-pages-black%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [M Media](https://wordpress.org/support/users/mmediagroup/)
 * (@mmediagroup)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/external-script-makes-pages-black/#post-12671581)
 * Hey [@developboon](https://wordpress.org/support/users/developboon/)!
 * Great work with your site and great selection of tracks!
 * I’ve taken a look and can’t reproduce the issue in Safari. Have you managed to
   resolve this?
 * Warm regards!
 *  [deeve](https://wordpress.org/support/users/deeve/)
 * (@deeve)
 * [6 years ago](https://wordpress.org/support/topic/external-script-makes-pages-black/#post-12878179)
 * Hi Capser, I couldn’t get your link to work – Internal Server error. Have you
   got a new one?
    -  This reply was modified 6 years ago by [deeve](https://wordpress.org/support/users/deeve/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘External script makes pages black.’ is closed to new replies.

## Tags

 * [mixcloud](https://wordpress.org/support/topic-tag/mixcloud/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [white pages](https://wordpress.org/support/topic-tag/white-pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [deeve](https://wordpress.org/support/users/deeve/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/external-script-makes-pages-black/#post-12878179)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
