[wp-trac] [WordPress Trac] #58810: Allow giving priority to a block style for wp_maybe_inline_styles()

WordPress Trac noreply at wordpress.org
Wed Aug 2 16:55:43 UTC 2023


#58810: Allow giving priority to a block style for wp_maybe_inline_styles()
---------------------------+------------------------------
 Reporter:  asafm7         |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  performance
---------------------------+------------------------------

Comment (by westonruter):

 As pointed out by @jonoaldersonwp in #core-performance:

 > IIRC the 20k limit on inlining was deliberately very conservative; I
 wonder if it might be worth bumping that up. Not a huge impact in this
 specific case, but if it catches a bunch of minor stuff in other
 scenarios, it might make a difference.

 On a related note, AMP's limit for (inline) CSS was originally 50k but
 even that was found to be too conservative, and it was increased to 75k. I
 agree that it would be worthwhile revisiting the 20k threshold for
 `styles_inline_size_limit`.

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


More information about the wp-trac mailing list