Requesting youtube videos in iframe with AJAX

1

I have noticed that my site got very slow after the new layout update.

It turns out that analyzing through the chrome console, I see that it is google: googleads.g.doubleclick.net/pagead/id Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

Another one that appears also is: (but I think it's because of AdBlock)

www-embed-player.js:384 GET https://googleads.g.doubleclick.net/pagead/id net::ERR_BLOCKED_BY_CLIENT

I'll explain how it works: I have categories on the menu, where the person clicks and goes into the category. In this category it displays the products of the same, and clicking on the product loads a modal with the information including the video.

I think that AJAX should be used to make the request on youtube when there is loading of this modal. How can I do this?

I do not have much knowledge of AJAX.

    
asked by anonymous 13.04.2017 / 13:28

0 answers