• Resolved Ov3rfly

    (@ov3rfly)


    During the process of preparing client sites for #gdpr-compliance, we found that current plugin version 11.8.6.1 with WordPress 4.9.5 loads an external script from youtube.com on each and every page of the website, also if no youtube embed is found on the page.

    We tracked it down to the file youtube-embed-plus/scripts/ytprefs.min.js which contains this code (quote from non-minified version) and is included on all pages.

    (function (window, $)
    {
        [...]
        if (typeof window.YT === 'undefined')
        {
            var iapi = document.createElement('script');
            iapi.src = "//www.youtube.com/iframe_api";
            iapi.type = "text/javascript";
            document.getElementsByTagName('head')[0].appendChild(iapi);
        } else if [...]

    Suggested solution and expected behaviour: Load external scripts only on pages which also have youtube embeds.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author embedplus

    (@embedplus)

    Users have found success with GDPR and other reasons (like optimization and compatibility) by using a plugin like https://www.ads-software.com/plugins/plugin-organizer/ It can selectively disable any plugin on any particular page, at the server level. Although this solution works, we’re currently also weighing other effective options within our plugin that won’t bog down page speed due to additional checks and conditionals.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Any progress here?

    Additional third party plugins which try to disable parts of other plugins are not an option for our client sites.

    Plugin Author embedplus

    (@embedplus)

    We’ll be sure to post something, as soon as we have an acceptable and tested alternative.

    -EmbedPlus Team

    Plugin Author embedplus

    (@embedplus)

    We released a new version recently. Take a look at it and make the appropriate settings under “Compatibility”.

    -EmbedPlus Team

    Thread Starter Ov3rfly

    (@ov3rfly)

    Thanks, the unnecessary loading on all pages appears to be resolved now.

    Any plans to add some sort of “click-to-play” functionality for full gdpr-compliance?

    Plugin Author embedplus

    (@embedplus)

    Check out the “No Cookie” option, that’s as close as we’d offer.

    -EmbedPlus Team

    • This reply was modified 6 years, 6 months ago by embedplus.
    Thread Starter Ov3rfly

    (@ov3rfly)

    Thanks for feedback.

    It appears this option still loads content from YouTube before the user has given consent, so we have to remove/replace the plugin due to #gdpr-compliance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘External script from youtube.com loaded on all pages, also without video embeds’ is closed to new replies.