# Confused about remotely loaded javascript content

**URL:** https://meta.discourse.org/t/confused-about-remotely-loaded-javascript-content/171770
**Category:** Support
**Created:** [November 30, 2020, 6:07pm UTC](https://meta.discourse.org/t/confused-about-remotely-loaded-javascript-content/171770 "2020-11-30T18:07:54Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Jim\_Starkweather](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim_starkweather/32/181916_2.png) [@Jim\_Starkweather](https://meta.discourse.org/u/Jim_Starkweather)
#### Post date: [December 3, 2020, 8:50pm UTC](https://meta.discourse.org/t/confused-about-remotely-loaded-javascript-content/171770/4 "2020-12-03T20:50:54Z")

</div>

Okay so I noted that the CSP log was showing the Google ads script was being blocked so I added

```
https://pagead2.googlesyndication.com

```

to the CSP script src list and then my Google Adsense ads started appearing (kind of surprised you still have to do that even with the Adsense plugin installed). The thing I noted though is that with my House Ads set to 100% (so that my script is the only one being called) I get ZERO notification in CSP that there is an issue. So that leaves me right back to being confused. The House Ad code is in the HTML (encoded) and appears as above in the browser inspection view.

Is there something blocking the output but not triggering a CSP warning?

The output uses `document.write` to create the ad space. I am guessing that is the culprit. The output looks like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/8/a8a70960f50ae321fbf7d856e0186aacd0fa15fa.png)

Lol… if I put the script output in here in text it was generating just fine. Doh…

I did find this post with a similar issue, but this person figured it out on their own and is clearly better with javascript than I.

> [@\[PAID GIG\] Help with SCRIPT Tag Rendering of Revive Ad Server Tags for Draft Plugin](https://meta.discourse.org/t/paid-gig-help-with-script-tag-rendering-of-revive-ad-server-tags-for-draft-plugin/152057):
>
> Summary Have created a draft of a revive ad server plugin based on a subset of code from the official discourse ad plugin. Basically, I removed the ad networks and refactored the house-ad code (all documented in the README) to serve tags from our revive ad server, filtering for either desktop or mobile ads (Revive does not support responsive tags yet). Here this the current redesign: [https://github.com/unixneo/neo-revive-discourse](https://github.com/unixneo/neo-revive-discourse)Status: Issue with rendering \<script\> tags (sync and async…

As with him though I am willing to pay someone for help with this.

Thanks,  
Jim

---

_[View the full topic](https://meta.discourse.org/t/confused-about-remotely-loaded-javascript-content/171770)._
