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. 

        

        1. Screenshot from 2019-10-23 00-54-36.png
          306 kB
          Thanos Theodorakopoulos
        2. Screenshot from 2019-10-24 00-18-47.png
          428 kB
          Thanos Theodorakopoulos

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

              Created:
              Updated:
              Resolved: