Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4333

Restrict load of Gutenberg assets to load only when actually needed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Must have Must have
    • None
    • 2
    • Admin Panel
    • Sprint #108

      For example editorStyle.css & editorIndex.js build assets do load when we go on block usage page, causing client error & CSS unwanted result, see image attached

      Probably we should better create new assets files (like adminStyle.css, adminIndex.js) and load them when the hook action is equal to "admin.php" and prepare webpack config accordingly. 

        

            ttheodor Thanos Theodorakopoulos
            ttheodor Thanos Theodorakopoulos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: