[wp-trac] [WordPress Trac] #59532: Avoid registering block-patterns on the frontend

WordPress Trac noreply at wordpress.org
Wed Oct 4 09:54:47 UTC 2023


#59532: Avoid registering block-patterns on the frontend
--------------------------+------------------------------
 Reporter:  aristath      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+------------------------------

Comment (by spacedmonkey):

 > Registering block patterns from a theme is an expensive process -

 @aristath Can you explain what is expensive about it? Storing an array of
 data is pretty cheap. To me the expensive part is the output buffering,
 something we could do lazily.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59532#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list