Skip to content

スクリプトは必要なページでだけ読み込む #5

Description

@ddryo
  • renderフックでブロックが使われたかをチェックして必要なページにのみjsを読み込む。
  • CSSもshould_load_separate_core_block_assetsを考慮する?

※ ただしクラシックエディターでのサポートを切る必要あり。(the_contentフィルターでクラス名チェックすればいけるけど...)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions