[wp-trac] [WordPress Trac] #56388: Compiled block styles contain a lot of trash

WordPress Trac noreply at wordpress.org
Tue Aug 16 07:46:38 UTC 2022


#56388: Compiled block styles contain a lot of trash
--------------------------+--------------------
 Reporter:  aristath      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.1
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 All block styles contain ~75 lines of comments which are not needed. For
 example you can take a look at
 https://github.com/WordPress/WordPress/blob/6.0.1/wp-
 includes/blocks/paragraph/style.css
 These comments get added to all non-minified stylesheets and they don't
 make any sense.

 Removing these when possible will reduce the overall package size, make
 debugging easier since there will be significantly less noise when viewing
 the source, and improve performance when `SCRIPT_DEBUG` is `true`, since
 the loaded assets will be smaller.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56388>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list