Support » Plugin: Getwid - Gutenberg Blocks » Youtube API conflicts with other instances

  • Getwid includes the JS callback ‘onYouTubeIframeAPIReady’ globally on every page. This prevents any other plugins or custom code from utilising this API.

    A solution would be to only include this when the related block is present on a page, and/or enqueuing this section of the script through WP’s enqueue system so that it can be un-queued from functions.php if not needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dmytro


    Hi @alfiebevensix,
    We did not experience any conflicts before. Could you specify the plugin(s) that conflicted with Getwid?

    Hi @dimned,

    The conflict we’re experiencing is with the ‘Gamipress YouTube Integration’ plugin. It is caused by the fact that the YT Player API requires defining ‘window.onYouTubeIframeAPIReady()’ function for it to use as a callback.

    Because this API and related code is being included globally by Getwid rather than only when youtube widgets are loaded, Gamipress cannot re-define the ‘window.onYouTubeIframeAPIReady()’ for its YouTube integrations as the function is already defined from Getwid’s scripts.

    Hope this helps clarify.


    Plugin Support Dmytro


    Hi @alfiebevensix,
    Thanks for the provided information. I’ve delivered the information to our developers. We will let you know when we have any news about this request.
    We are sorry for temporary inconveniences.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.