YouTube API and Javascript on page without YouTube

OK, So i don’t know if this is part of a different issue i reported about YouTube DNS Lookups - but on a page that has a video, that’s hosted on our own media and uses the Player element, I’m getting errors from GTMetrix about not minifying YouTube scripts that shouldn’t even be present on the page.

Hello Jesse,

Thanks for writing in! A certain plugin could be causing the issue. To test this one, I would highly recommend that you create a staging URL, a clone to your site could also be possible, and then when testing it in GTMetrix, deactivate all plugins. It is also good to use just the parent theme because there might be something in your child theme that is causing this issue as well.

Kindly let us know how it goes.

It’s the wonderplugin carousel that was doing it - WPRocket support was able to isolate it for me.

Adding this to the carousels removes it.

Data Options input box: data-inityoutube=“false”

Hi Jesse,

We are glad that WPRocket support was able to help you to solve your issue. If you have any other concerns, feel free to reach us.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.