Skip to content

VideoPress block always renders scripts, doesn't use wp_enqueue_* #35926

Open
@danieliser

Description

Impacted plugin

VideoPress

Quick summary

As it states, if you insert multiple VideoPress blocks you will end up trying to load the iframe JS API script every time.

It should be enqueued.

Steps to reproduce

Insert VideoPress block twice.

A clear and concise description of what you expected to happen.

Should enqueue the script properly and only load it once.

What actually happened

It loads under every iframe

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions