[wp-trac] [WordPress Trac] #43258: Output buffer template rendering and add filter for post-processing (e.g. caching, optimization)

WordPress Trac noreply at wordpress.org
Mon Feb 24 22:48:58 UTC 2025


#43258: Output buffer template rendering and add filter for post-processing (e.g.
caching, optimization)
-------------------------+--------------------------------
 Reporter:  nextendweb   |       Owner:  westonruter
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  6.8
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  docs, performance
-------------------------+--------------------------------
Changes (by westonruter):

 * owner:  (none) => westonruter
 * status:  new => accepted
 * milestone:  Future Release => 6.8


Comment:

 Beyond page caching plugins and optimization plugins (e.g. Optimization
 Detective) which rely on output buffering, there are two specific
 optimizations which core could apply if output buffering were available,
 especially for classic themes:

 1. The large block library stylesheet could be split up into the block-
 specific stylesheets enabled via the
 `should_load_separate_core_block_assets` filter. (cf. performance#1834
 [https://github.com/WordPress/performance/issues/1834])
 2. The `importmap` script could be moved from the footer to the `head`
 (see `WP_Script_Modules::add_hooks()`).

 I'm going to milestone this for 6.8 since so much would be enabled by
 this.

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


More information about the wp-trac mailing list