Mike5050
Mike5050

Reputation: 605

Why is youtube iframe causing "Loading failed for the <script> with source"

I am using youtube iframe for embeding on my site. Currently I am in local development, but if I use iframe from youtube, it will give me the error message in console:

Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”.

I dont have any adblockers on.

After the error, the rest of the page refuses to load and work correctly. For example, I had javascript loaders at the end of the page, those did not work/load, I have since moved them to the header and now that works. I am not doing anything magical, just including the iframe youtube has on their site right into the main page.

iframe usage:

<iframe width="560" height="315" src="https://www.youtube.com/embed/#" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>

Upvotes: 1

Views: 3772

Answers (1)

MRousse
MRousse

Reputation: 546

Which browser did you try?

I tried with firefox and chrome with the following results:

  • Firefox with AdBlock Plus: Loading failed
  • Firefox with ABP disabled (in the extensions page of Firefox): Worked
  • Chrome without ABP: Worked

Upvotes: 1

Related Questions